@getpara/react-native-wallet 1.13.0-dev.2 → 1.13.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.
|
@@ -180,8 +180,8 @@ export class ParaMobile extends ParaCore {
|
|
|
180
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
181
|
var auth = __rest(_a, []);
|
|
182
182
|
yield this.logout();
|
|
183
|
-
const authInfo = extractAuthInfo(auth, { isRequired:
|
|
184
|
-
const { challenge, allowedPublicKeys } = yield this.ctx.client.getWebChallenge(authInfo
|
|
183
|
+
const authInfo = extractAuthInfo(auth, { isRequired: true });
|
|
184
|
+
const { challenge, allowedPublicKeys } = yield this.ctx.client.getWebChallenge(authInfo.auth);
|
|
185
185
|
const requestJson = {
|
|
186
186
|
challenge,
|
|
187
187
|
timeout: 60000,
|
package/package.json
CHANGED
|
@@ -1,34 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-native-wallet",
|
|
3
|
-
"version": "1.13.0
|
|
3
|
+
"version": "1.13.0",
|
|
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)",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
9
9
|
"types": "dist/index.d.ts",
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"default": "./dist/index.js"
|
|
13
|
-
},
|
|
14
|
-
"./shim": {
|
|
15
|
-
"default": "./dist/shim.js"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"react-native": {
|
|
19
|
-
".": "./dist/index.js",
|
|
20
|
-
"./shim": "./dist/shim.js"
|
|
21
|
-
},
|
|
22
|
-
"typesVersions": {
|
|
23
|
-
"*": {
|
|
24
|
-
"shim": [
|
|
25
|
-
"dist/shim.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"*": [
|
|
28
|
-
"dist/index.d.ts"
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
10
|
"files": [
|
|
33
11
|
"dist",
|
|
34
12
|
"src",
|
|
@@ -39,22 +17,18 @@
|
|
|
39
17
|
"signer.xcframework",
|
|
40
18
|
"signer.aar"
|
|
41
19
|
],
|
|
42
|
-
"sideEffects": [
|
|
43
|
-
"dist/shim.js"
|
|
44
|
-
],
|
|
45
20
|
"scripts": {
|
|
46
21
|
"build": "rm -rf dist && tsc",
|
|
47
22
|
"compile-signer": "bash ./scripts/compileSigner.sh"
|
|
48
23
|
},
|
|
49
24
|
"dependencies": {
|
|
50
|
-
"@getpara/core-sdk": "1.
|
|
51
|
-
"@getpara/user-management-client": "1.
|
|
52
|
-
"@getpara/web-sdk": "1.
|
|
25
|
+
"@getpara/core-sdk": "1.13.0",
|
|
26
|
+
"@getpara/user-management-client": "1.13.0",
|
|
27
|
+
"@getpara/web-sdk": "1.13.0",
|
|
53
28
|
"@peculiar/webcrypto": "^1.5.0",
|
|
54
29
|
"node-forge": "1.3.1",
|
|
55
30
|
"react-native-url-polyfill": "2.0.0",
|
|
56
|
-
"text-encoding": "0.7.0"
|
|
57
|
-
"@ungap/structured-clone": "1.3.0"
|
|
31
|
+
"text-encoding": "0.7.0"
|
|
58
32
|
},
|
|
59
33
|
"devDependencies": {
|
|
60
34
|
"@craftzdog/react-native-buffer": "6.0.5",
|
|
@@ -84,5 +58,6 @@
|
|
|
84
58
|
},
|
|
85
59
|
"publishConfig": {
|
|
86
60
|
"access": "public"
|
|
87
|
-
}
|
|
61
|
+
},
|
|
62
|
+
"gitHead": "cfc12a88a622907b3fbde326c891060fa53a2d32"
|
|
88
63
|
}
|
|
@@ -189,9 +189,9 @@ export class ParaMobile extends ParaCore {
|
|
|
189
189
|
async login({ ...auth }: Auth<'email'> | Auth<'phone'>): Promise<void> {
|
|
190
190
|
await this.logout();
|
|
191
191
|
|
|
192
|
-
const authInfo = extractAuthInfo(auth, { isRequired:
|
|
192
|
+
const authInfo = extractAuthInfo(auth, { isRequired: true });
|
|
193
193
|
|
|
194
|
-
const { challenge, allowedPublicKeys } = await this.ctx.client.getWebChallenge(authInfo
|
|
194
|
+
const { challenge, allowedPublicKeys } = await this.ctx.client.getWebChallenge(authInfo.auth);
|
|
195
195
|
|
|
196
196
|
const requestJson: PasskeyGetRequest = {
|
|
197
197
|
challenge,
|