expo-local-authentication 12.0.1 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/android/build.gradle +2 -2
- package/build/LocalAuthentication.types.d.ts +6 -4
- package/build/LocalAuthentication.types.js +2 -1
- package/build/LocalAuthentication.types.js.map +1 -1
- package/package.json +5 -2
- package/plugin/build/withLocalAuthentication.js +1 -1
- package/src/LocalAuthentication.types.ts +6 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ For [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/
|
|
|
13
13
|
|
|
14
14
|
# Installation in bare React Native projects
|
|
15
15
|
|
|
16
|
-
For bare React Native projects, you must ensure that you have [installed and configured the `
|
|
16
|
+
For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
|
|
17
17
|
|
|
18
18
|
### Add the package to your npm dependencies
|
|
19
19
|
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '12.0
|
|
6
|
+
version = '12.1.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -61,7 +61,7 @@ android {
|
|
|
61
61
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
62
62
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
63
63
|
versionCode 30
|
|
64
|
-
versionName "12.0
|
|
64
|
+
versionName "12.1.0"
|
|
65
65
|
}
|
|
66
66
|
lintOptions {
|
|
67
67
|
abortOnError false
|
|
@@ -15,7 +15,8 @@ export declare enum AuthenticationType {
|
|
|
15
15
|
*/
|
|
16
16
|
FACIAL_RECOGNITION = 2,
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Indicates iris recognition support.
|
|
19
|
+
* @platform android
|
|
19
20
|
*/
|
|
20
21
|
IRIS = 3
|
|
21
22
|
}
|
|
@@ -52,9 +53,10 @@ export declare type LocalAuthenticationOptions = {
|
|
|
52
53
|
*/
|
|
53
54
|
disableDeviceFallback?: boolean;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
56
|
+
* Allows to customize the default `Use Passcode` label shown after several failed
|
|
57
|
+
* authentication attempts. Setting this option to an empty string disables this button from
|
|
58
|
+
* showing in the prompt.
|
|
59
|
+
* @platform ios
|
|
58
60
|
*/
|
|
59
61
|
fallbackLabel?: string;
|
|
60
62
|
};
|
|
@@ -10,7 +10,8 @@ export var AuthenticationType;
|
|
|
10
10
|
*/
|
|
11
11
|
AuthenticationType[AuthenticationType["FACIAL_RECOGNITION"] = 2] = "FACIAL_RECOGNITION";
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Indicates iris recognition support.
|
|
14
|
+
* @platform android
|
|
14
15
|
*/
|
|
15
16
|
AuthenticationType[AuthenticationType["IRIS"] = 3] = "IRIS";
|
|
16
17
|
})(AuthenticationType || (AuthenticationType = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocalAuthentication.types.js","sourceRoot":"","sources":["../src/LocalAuthentication.types.ts"],"names":[],"mappings":"AAIA,cAAc;AACd,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"LocalAuthentication.types.js","sourceRoot":"","sources":["../src/LocalAuthentication.types.ts"],"names":[],"mappings":"AAIA,cAAc;AACd,MAAM,CAAN,IAAY,kBAcX;AAdD,WAAY,kBAAkB;IAC5B;;OAEG;IACH,yEAAe,CAAA;IACf;;OAEG;IACH,uFAAsB,CAAA;IACtB;;;OAGG;IACH,2DAAQ,CAAA;AACV,CAAC,EAdW,kBAAkB,KAAlB,kBAAkB,QAc7B;AAED,cAAc;AACd,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB;;OAEG;IACH,iDAAQ,CAAA;IACR;;OAEG;IACH,qDAAU,CAAA;IACV;;OAEG;IACH,2DAAa,CAAA;AACf,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB","sourcesContent":["export type LocalAuthenticationResult =\n | { success: true }\n | { success: false; error: string; warning?: string };\n\n// @needsAudit\nexport enum AuthenticationType {\n /**\n * Indicates fingerprint support.\n */\n FINGERPRINT = 1,\n /**\n * Indicates facial recognition support.\n */\n FACIAL_RECOGNITION = 2,\n /**\n * Indicates iris recognition support.\n * @platform android\n */\n IRIS = 3,\n}\n\n// @needsAudit\nexport enum SecurityLevel {\n /**\n * Indicates no enrolled authentication.\n */\n NONE = 0,\n /**\n * Indicates non-biometric authentication (e.g. PIN, Pattern).\n */\n SECRET = 1,\n /**\n * Indicates biometric authentication.\n */\n BIOMETRIC = 2,\n}\n\n// @needsAudit\nexport type LocalAuthenticationOptions = {\n /**\n * A message that is shown alongside the TouchID or FaceID prompt.\n */\n promptMessage?: string;\n /**\n * Allows to customize the default `Cancel` label shown.\n */\n cancelLabel?: string;\n /**\n * After several failed attempts the system will fallback to the device passcode. This setting\n * allows you to disable this option and instead handle the fallback yourself. This can be\n * preferable in certain custom authentication workflows. This behaviour maps to using the iOS\n * [LAPolicyDeviceOwnerAuthenticationWithBiometrics](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthenticationwithbiometrics?language=objc)\n * policy rather than the [LAPolicyDeviceOwnerAuthentication](https://developer.apple.com/documentation/localauthentication/lapolicy/lapolicydeviceownerauthentication?language=objc)\n * policy. Defaults to `false`.\n */\n disableDeviceFallback?: boolean;\n /**\n * Allows to customize the default `Use Passcode` label shown after several failed\n * authentication attempts. Setting this option to an empty string disables this button from\n * showing in the prompt.\n * @platform ios\n */\n fallbackLabel?: string;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-local-authentication",
|
|
3
|
-
"version": "12.0
|
|
3
|
+
"version": "12.1.0",
|
|
4
4
|
"description": "Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to authenticate the user with a face or fingerprint scan.",
|
|
5
5
|
"main": "build/LocalAuthentication.js",
|
|
6
6
|
"types": "build/LocalAuthentication.d.ts",
|
|
@@ -44,5 +44,8 @@
|
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"expo-module-scripts": "^2.0.0"
|
|
46
46
|
},
|
|
47
|
-
"
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"expo": "*"
|
|
49
|
+
},
|
|
50
|
+
"gitHead": "2e5c6983b86d5ecfca028ba64002897d8adc2cc4"
|
|
48
51
|
}
|
|
@@ -15,4 +15,4 @@ const withLocalAuthentication = (config, { faceIDPermission } = {}) => {
|
|
|
15
15
|
'android.permission.USE_FINGERPRINT',
|
|
16
16
|
]);
|
|
17
17
|
};
|
|
18
|
-
exports.default = config_plugins_1.createRunOncePlugin(withLocalAuthentication, pkg.name, pkg.version);
|
|
18
|
+
exports.default = (0, config_plugins_1.createRunOncePlugin)(withLocalAuthentication, pkg.name, pkg.version);
|
|
@@ -13,7 +13,8 @@ export enum AuthenticationType {
|
|
|
13
13
|
*/
|
|
14
14
|
FACIAL_RECOGNITION = 2,
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Indicates iris recognition support.
|
|
17
|
+
* @platform android
|
|
17
18
|
*/
|
|
18
19
|
IRIS = 3,
|
|
19
20
|
}
|
|
@@ -54,9 +55,10 @@ export type LocalAuthenticationOptions = {
|
|
|
54
55
|
*/
|
|
55
56
|
disableDeviceFallback?: boolean;
|
|
56
57
|
/**
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
58
|
+
* Allows to customize the default `Use Passcode` label shown after several failed
|
|
59
|
+
* authentication attempts. Setting this option to an empty string disables this button from
|
|
60
|
+
* showing in the prompt.
|
|
61
|
+
* @platform ios
|
|
60
62
|
*/
|
|
61
63
|
fallbackLabel?: string;
|
|
62
64
|
};
|