react-native-keychain
Advanced tools
Comparing version 4.0.1 to 4.0.2
{ | ||
"name": "react-native-keychain", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Keychain Access for React Native", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -92,2 +92,3 @@ <p align="center"><img src="https://user-images.githubusercontent.com/378279/36642269-6195b10c-1a3d-11e8-9e1b-37a3d1bcf7b3.png" align="center" width="150" height="201" alt="" /></p> | ||
Get what type of hardware biometry support the device has. Resolves to a `Keychain.BIOMETRY_TYPE` value when supported, otherwise `null`. | ||
> This method returns `null`, if the device haven't enrolled into fingerprint/FaceId. Even though it has hardware for it. | ||
@@ -316,2 +317,6 @@ ### `getSecurityLevel()` (Android only) | ||
### macOS Catalyst | ||
This package supports macOS Catalyst. | ||
### Security | ||
@@ -318,0 +323,0 @@ |
@@ -34,3 +34,3 @@ declare module 'react-native-keychain' { | ||
export enum LAPolicy { | ||
export enum AUTHENTICATION_TYPE { | ||
DEVICE_PASSCODE_OR_BIOMETRICS = "AuthenticationWithBiometricsDevicePasscode", | ||
@@ -45,2 +45,8 @@ BIOMETRICS = "AuthenticationWithBiometrics" | ||
} | ||
export enum BIOMETRY_TYPE { | ||
TOUCH_ID = 'TouchID', | ||
FACE_ID = 'FaceID', | ||
FINGERPRINT = 'Fingerprint' | ||
} | ||
@@ -62,3 +68,3 @@ export interface Options { | ||
function getSupportedBiometryType( | ||
): Promise<string>; | ||
): Promise<BIOMETRY_TYPE | null>; | ||
@@ -74,3 +80,3 @@ function setInternetCredentials( | ||
server: string | ||
): Promise<UserCredentials>; | ||
): Promise<false | UserCredentials>; | ||
@@ -77,0 +83,0 @@ function hasInternetCredentials( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
104601
337
363