native_auth
this package is to implement faceID, touchID and fingerprint authentication
With this pack you can use the biometrics systems of Android and IOS devices.
English project snapshot. Visit GitHub for the latest content.
With this pack you can use the biometrics systems of Android and IOS devices.
import 'package:native_auth/native_auth.dart';
final response = await Auth.isAuthenticate();
print(response.isAuthenticated); // true or false
response is an enum AuthResult containing the statuses:
error, auth and noAuthauth means the user is authenticated.
noAuth means the user is no authenticated.
error means that it was not possible to request any biometrics.




Update your project's Info.plist file to include the
FaceID permissions:
<key>NSFaceIDUsageDescription</key>
<string>Why is my app authenticating using face id?</string>
Update your project's AndroidManifest.xml file to include the
USE_FINGERPRINT permissions:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.app">
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
<manifest>
Update your MainActivity.kt:
import io.flutter.embedding.android.FlutterFragmentActivity
class MainActivity: FlutterFragmentActivity() {
// ...
}
OR
Update your MainActivity.java:
import io.flutter.embedding.android.FlutterFragmentActivity;
public class MainActivity extends FlutterFragmentActivity {
// ...
}
to inherit FlutterActivity from FlutterFragmentActivity
Feito com ❤️ by Weliton Sousa
Dependency list 6 items
^2.1.6^1.1.1^1.0.21{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗