@getpara/react-native-wallet 2.0.0-alpha.13 → 2.0.0-alpha.15
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.
|
@@ -18,6 +18,7 @@ export declare class ParaMobile extends ParaCore {
|
|
|
18
18
|
*/
|
|
19
19
|
constructor(env: Environment, apiKey: string, relyingPartyId?: string, opts?: ConstructorOpts);
|
|
20
20
|
protected getPlatformUtils(): PlatformUtils;
|
|
21
|
+
isPasskeySupported(): Promise<boolean>;
|
|
21
22
|
/**
|
|
22
23
|
* Registers a passkey for the user.
|
|
23
24
|
* @param {Auth<'email'> | Auth<'phone'>} auth - The user's authentication details
|
|
@@ -66,6 +66,11 @@ export class ParaMobile extends ParaCore {
|
|
|
66
66
|
getPlatformUtils() {
|
|
67
67
|
return new ReactNativeUtils();
|
|
68
68
|
}
|
|
69
|
+
isPasskeySupported() {
|
|
70
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
71
|
+
return Passkey.isSupported();
|
|
72
|
+
});
|
|
73
|
+
}
|
|
69
74
|
/**
|
|
70
75
|
* Registers a passkey for the user.
|
|
71
76
|
* @param {Auth<'email'> | Auth<'phone'>} auth - The user's authentication details
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-native-wallet",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.15",
|
|
4
4
|
"description": "Para Wallet for React Native",
|
|
5
5
|
"homepage": "https://getpara.com",
|
|
6
6
|
"author": "Para Team <hello@getpara.com> (https://getpara.com)",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"compile-signer": "bash ./scripts/compileSigner.sh"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@getpara/core-sdk": "2.0.0-alpha.
|
|
26
|
-
"@getpara/user-management-client": "2.0.0-alpha.
|
|
27
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
25
|
+
"@getpara/core-sdk": "2.0.0-alpha.15",
|
|
26
|
+
"@getpara/user-management-client": "2.0.0-alpha.15",
|
|
27
|
+
"@getpara/web-sdk": "2.0.0-alpha.15",
|
|
28
28
|
"@peculiar/webcrypto": "^1.5.0",
|
|
29
29
|
"@sentry/react-native": "^6.10.0",
|
|
30
30
|
"node-forge": "1.3.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"publishConfig": {
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "f837a1584f2a0b5d61c9b7a91cd74a68c01d5161"
|
|
64
64
|
}
|
|
@@ -86,6 +86,10 @@ export class ParaMobile extends ParaCore {
|
|
|
86
86
|
return new ReactNativeUtils();
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
async isPasskeySupported(): Promise<boolean> {
|
|
90
|
+
return Passkey.isSupported();
|
|
91
|
+
}
|
|
92
|
+
|
|
89
93
|
/**
|
|
90
94
|
* Registers a passkey for the user.
|
|
91
95
|
* @param {Auth<'email'> | Auth<'phone'>} auth - The user's authentication details
|