@getpara/react-native-wallet 2.0.0-alpha.52 → 2.0.0-alpha.54
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.
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { ParaCore, Environment, decryptPrivateKeyAndDecryptShare, encryptPrivateKey, getAsymmetricKeyPair, getDerivedPrivateKeyAndDecrypt, getPublicKeyHex, getSHA256HashHex, parseCredentialCreationRes, } from '@getpara/web-sdk';
|
|
11
11
|
import { ReactNativeUtils } from './ReactNativeUtils.js';
|
|
12
12
|
import { Passkey, } from 'react-native-passkey';
|
|
13
|
-
import {
|
|
13
|
+
import { AuthMethodStatus } from '@getpara/user-management-client';
|
|
14
14
|
import { setEnv } from '../config.js';
|
|
15
15
|
import base64url from 'base64url';
|
|
16
16
|
import { webcrypto } from 'crypto';
|
|
@@ -180,7 +180,7 @@ export class ParaMobile extends ParaCore {
|
|
|
180
180
|
sigDerivedPublicKey: publicKeyHex,
|
|
181
181
|
cosePublicKey,
|
|
182
182
|
clientDataJSON,
|
|
183
|
-
status:
|
|
183
|
+
status: AuthMethodStatus.COMPLETE,
|
|
184
184
|
});
|
|
185
185
|
yield this.ctx.client.uploadEncryptedWalletPrivateKey(userId, encryptedPrivateKeyHex, encryptionKeyHash, resultJson.id);
|
|
186
186
|
});
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-native-wallet",
|
|
3
3
|
"description": "Para Wallet for React Native",
|
|
4
|
-
"version": "2.0.0-alpha.
|
|
4
|
+
"version": "2.0.0-alpha.54",
|
|
5
5
|
"author": "Para Team <hello@getpara.com> (https://getpara.com)",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@getpara/core-sdk": "2.0.0-alpha.
|
|
8
|
-
"@getpara/user-management-client": "2.0.0-alpha.
|
|
9
|
-
"@getpara/web-sdk": "2.0.0-alpha.
|
|
7
|
+
"@getpara/core-sdk": "2.0.0-alpha.54",
|
|
8
|
+
"@getpara/user-management-client": "2.0.0-alpha.54",
|
|
9
|
+
"@getpara/web-sdk": "2.0.0-alpha.54",
|
|
10
10
|
"@peculiar/webcrypto": "^1.5.0",
|
|
11
11
|
"@ungap/structured-clone": "1.3.0",
|
|
12
12
|
"node-forge": "1.3.1",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "680049700f7b36b7ef407cab0fbfadad8c069d74"
|
|
97
97
|
}
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
PasskeyGetRequest,
|
|
23
23
|
PasskeyGetResult,
|
|
24
24
|
} from 'react-native-passkey';
|
|
25
|
-
import { CurrentWalletIds,
|
|
25
|
+
import { CurrentWalletIds, AuthMethodStatus, TWalletScheme } from '@getpara/user-management-client';
|
|
26
26
|
import { setEnv } from '../config.js';
|
|
27
27
|
import base64url from 'base64url';
|
|
28
28
|
import { webcrypto } from 'crypto';
|
|
@@ -217,7 +217,7 @@ export class ParaMobile extends ParaCore {
|
|
|
217
217
|
sigDerivedPublicKey: publicKeyHex,
|
|
218
218
|
cosePublicKey,
|
|
219
219
|
clientDataJSON,
|
|
220
|
-
status:
|
|
220
|
+
status: AuthMethodStatus.COMPLETE,
|
|
221
221
|
});
|
|
222
222
|
|
|
223
223
|
await this.ctx.client.uploadEncryptedWalletPrivateKey(userId, encryptedPrivateKeyHex, encryptionKeyHash, resultJson.id);
|