File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ export type AuthenticateIOS = {
22 description : string ;
33 fallbackEnabled : boolean ;
44} ;
5- export type AuthenticateAndroid = { onAttempt : ( ) => void } ;
5+ export type AuthenticateAndroid = { onAttempt : ( error : FingerprintScannerError ) => void } ;
66
77export type Biometrics = 'Touch ID' | 'Face ID' | 'Fingerprint' ;
88
@@ -71,7 +71,7 @@ export interface FingerPrintProps {
7171 /**
7272 ### isSensorAvailable(): (Android, iOS)
7373 Checks if Fingerprint Scanner is able to be used by now.
74- - Returns a `Promise<string >`
74+ - Returns a `Promise<Biometrics >`
7575 - `biometryType`: *String* - The type of biometric authentication supported by the device.
7676 - `error: FingerprintScannerError { name, message, biometric }` - The name and message of failure and the biometric type in use.
7777
@@ -87,7 +87,7 @@ export interface FingerPrintProps {
8787
8888 ------------
8989 */
90- isSensorAvailable : ( ) => Promise < string > ;
90+ isSensorAvailable : ( ) => Promise < Biometrics > ;
9191
9292 /**
9393 ### authenticate({ description, fallbackEnabled }): (iOS)
You can’t perform that action at this time.
0 commit comments