搜尋套件、儲存庫與 APP 分類

套件詳情v1.0.6

native_auth

此套件用於實現 FaceID、TouchID 與指紋驗證

AndroidiOSWindows
近 30 天下載
39
喜歡數
32
Pub 分數
150

安裝套件

flutter pub add native_auth

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

原生認證是一個Flutter套件,可在Android和iOS設備上使用Face ID、Touch ID和指紋辨識實現生物辨識驗證。它提供了一個簡單的介面,可將安全的本機驗證整合到應用程式中,透過快速可靠的身分驗證提升使用者體驗。該套件也支援Windows,使其適用於跨平台應用。基於原生平台API建構,確保相容性和效能。開發者可以使用極少的程式碼輕鬆實作安全登入或敏感動作確認。原始碼公開於GitHub,以確保透明度並支援貢獻。

適用情境

  • 安全應用登入
  • 基於生物特徵的交易確認
  • 受保護的資料存取
  • 用戶身份驗證
  • 雙因素驗證

主要特色

  • 面容 ID 支援
  • 支援觸控 ID
  • 指紋驗證
  • 跨平台相容性(Android、iOS、Windows)
  • 簡單 API 結合

適合對象

  • 需要安全驗證的應用程式
  • 金融或銀行應用
  • 具有隱私需求的醫療保健應用程式
  • 處理敏感用戶數據的應用程式
  • 開發安全的移動體驗

使用建議

  • 需要設備支援生物識別
  • 僅限 Android、iOS 和 Windows 平台
  • 可能需要備用身分驗證方法
  • 權限必須得到妥善處理
  • 不適用於非生物特徵使用情境

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

native_auth

With this pack you can use the biometrics systems of Android and IOS devices.


It will ask for the user which the biometric authentication method of his device, this can be FaceID or TouchID on IPhone or FingerPrint on Android phone

How to use

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 noAuth

auth means the user is authenticated.
noAuth means the user is no authenticated.
error means that it was not possible to request any biometrics.

📱Screenshots

🤖 Android

🍎 IOS

IOS Integration

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>

Android Integration

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

所屬分類

依賴

依賴清單 3 項

  • local_auth^2.1.6
  • local_auth_android^1.0.21
  • local_auth_ios^1.1.1

原始碼儲存庫

使用此套件的專案

暫無相關資料。