react-native-fingerprint-scanner
Advanced tools
Comparing version 2.4.0 to 2.5.0
{ | ||
"name": "react-native-fingerprint-scanner", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "React Native Fingerprint Scanner for Android and iOS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -225,3 +225,5 @@ # React Native Fingerprint Scanner | ||
- Returns a `Promise` | ||
- Returns a `Promise<string>` | ||
- `biometryType: String` - The type of biometric authentication supported by the device. | ||
- `error: FingerprintScannerError { name, message }` - The reason of failure. | ||
@@ -232,2 +234,3 @@ ```javascript | ||
.isSensorAvailable() | ||
.then(biometryType => this.setState({ biometryType })) | ||
.catch(error => this.setState({ errorMessage: error.message })); | ||
@@ -291,2 +294,10 @@ } | ||
### `Types of Biometrics` | ||
| Value | OS | | ||
|---|---| | ||
| Touch ID | iOS | | ||
| Face ID | iOS | | ||
| Fingerprint | Android | | ||
### `Errors` | ||
@@ -306,2 +317,3 @@ | ||
| FingerprintScannerNotSupported | Device does not support Fingerprint Scanner | | ||
| DeviceLocked | Authentication was not successful, the device currently in a lockout of 30 seconds | | ||
@@ -308,0 +320,0 @@ ## License |
@@ -12,2 +12,3 @@ const ERRORS = { | ||
FingerprintScannerNotSupported: 'Device does not support Fingerprint Scanner.', | ||
DeviceLocked: 'Authentication was not successful, the device currently in a lockout of 30 seconds' | ||
}; | ||
@@ -14,0 +15,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
42655
21
235
319
0