1.0.5 • Published 10 months ago

react-native-biometric-authentication v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

react-native-biometric-authentication

Installation

npm i --save react-native-biometric-authentication

or

yarn add react-native-biometric-authentication

Usage

Linking the Library

In order to use biometric auth, you must first link the library to your project.

Using react-native link

Use the built-in command:

react-native link react-native-biometric-authentication

Using Cocoapods (iOS only)

On iOS you can also link package by updating your podfile

pod 'TouchID', :path => "#{node_modules_path}/react-native-biometric-authentication"

and then run

pod install

App Permissions

Add the following permissions to their respective files:

In your Info.plist:

<key>RNFaceAuthentication</key>
<string>faceAuthentication</string>
account.</string>

Requesting Face ID Authentication

import { authorize } from 'react-native-biometric-authentication';

// ...

const result = await authorize();

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

3 years ago

1.0.0

3 years ago