capacitor-plugin-biometric
biometric login with FaceId, Fingerprint and Iris. Depending to the device biometrics options.Install
npm install capacitor-plugin-biometric
npx cap sync
API
saveUser(...)
getUser()
has(...)
isAvailable()
verify(...)
save(...)
saveDataUser(...)
getDataUser()
cleanAll(...)
saveUser(...)
saveUser(options: { "name": string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | ------------------------------ | |
options
| { name: string; }
|Returns:
Promise<{ value: string; }>
getUser()
getUser() => Promise<{ value: string; }>
Returns:
Promise<{ value: string; }>
has(...)
has(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | ------------------------------- | |
options
| { value: string; }
|Returns:
Promise<{ value: string; }>
isAvailable()
isAvailable() => Promise<{ value: string; }>
Returns:
Promise<{ value: string; }>
verify(...)
verify(options: { "key": string; "message": string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | ---------------------------------------------- | |
options
| { key: string; message: string; }
|Returns:
Promise<{ value: string; }>
save(...)
save(options: { "key": string; "password": string; "userAuthenticationRequired": string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | ----------------------------------------------------------------------------------- | |
options
| { key: string; password: string; userAuthenticationRequired: string; }
|Returns:
Promise<{ value: string; }>
saveDataUser(...)
saveDataUser(options: { value: string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | ------------------------------- | |
options
| { value: string; }
|Returns:
Promise<{ value: string; }>
getDataUser()
getDataUser() => Promise<{ value: string; }>
Returns:
Promise<{ value: string; }>
cleanAll(...)
cleanAll(options: { "source": string; }) => Promise<{ value: string; }>
| Param | Type | | ------------- | -------------------------------- | |
options
| { source: string; }
|Returns:
Promise<{ value: string; }>
capacitorBiometria