react-native-local-auth
Version:
React Native local authentication with touch id or passcode
33 lines (32 loc) • 1.29 kB
JavaScript
module.exports = {
LAErrorAuthenticationFailed: {
message: 'Authentication was not successful because the user failed to provide valid credentials.'
},
LAErrorUserCancel: {
message: 'Authentication was canceled by the user—for example, the user tapped Cancel in the dialog.'
},
LAErrorUserFallback: {
message: 'Authentication was canceled because the user tapped the fallback button (Enter Password).'
},
LAErrorSystemCancel: {
message: 'Authentication was canceled by system—for example, if another application came to foreground while the authentication dialog was up.'
},
LAErrorPasscodeNotSet: {
message: 'Authentication could not start because the passcode is not set on the device.'
},
LAErrorTouchIDNotAvailable: {
message: 'Authentication could not start because Touch ID is not available on the device'
},
LAErrorTouchIDNotEnrolled: {
message: 'Authentication could not start because Touch ID has no enrolled fingers.'
},
LAErrorTouchIDLockout: {
message: 'Touch ID has been temporarily locked to prevent abuse. Please wait a while.'
},
RCTTouchIDUnknownError: {
message: 'Could not authenticate for an unknown reason.'
},
RCTTouchIDNotSupported: {
message: 'Device does not support Touch ID.'
}
};