@getpara/react-native-wallet 0.1.0 → 0.2.1
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.
|
@@ -63,7 +63,7 @@ export class ParaMobile extends ParaCore {
|
|
|
63
63
|
verifyEmail: { get: () => super.verifyEmail }
|
|
64
64
|
});
|
|
65
65
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
const webAuthCreateUrl = yield _super.verifyEmail.call(this, verificationCode);
|
|
66
|
+
const webAuthCreateUrl = yield _super.verifyEmail.call(this, { verificationCode });
|
|
67
67
|
const segments = webAuthCreateUrl.split('/');
|
|
68
68
|
const segments2 = segments[segments.length - 1].split('?');
|
|
69
69
|
const biometricsId = segments2[0];
|
|
@@ -80,7 +80,7 @@ export class ParaMobile extends ParaCore {
|
|
|
80
80
|
verifyPhone: { get: () => super.verifyPhone }
|
|
81
81
|
});
|
|
82
82
|
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
const webAuthCreateUrl = yield _super.verifyPhone.call(this, verificationCode);
|
|
83
|
+
const webAuthCreateUrl = yield _super.verifyPhone.call(this, { verificationCode });
|
|
84
84
|
const segments = webAuthCreateUrl.split('/');
|
|
85
85
|
const segments2 = segments[segments.length - 1].split('?');
|
|
86
86
|
const biometricsId = segments2[0];
|
|
@@ -151,7 +151,7 @@ export class ReactNativeUtils {
|
|
|
151
151
|
}
|
|
152
152
|
ed25519PreKeygen(ctx, pregenIdentifier, pregenIdentifierType, _sessionCookie) {
|
|
153
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
154
|
-
const { walletId, protocolId } = yield ctx.client.
|
|
154
|
+
const { walletId, protocolId } = yield ctx.client.createPregenWallet({
|
|
155
155
|
pregenIdentifier,
|
|
156
156
|
pregenIdentifierType,
|
|
157
157
|
scheme: WalletScheme.ED25519,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpara/react-native-wallet",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
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": "0.1
|
|
26
|
-
"@getpara/user-management-client": "0.
|
|
27
|
-
"@getpara/web-sdk": "0.1
|
|
25
|
+
"@getpara/core-sdk": "0.2.1",
|
|
26
|
+
"@getpara/user-management-client": "0.2.0",
|
|
27
|
+
"@getpara/web-sdk": "0.2.1",
|
|
28
28
|
"@peculiar/webcrypto": "^1.5.0",
|
|
29
29
|
"fastestsmallesttextencoderdecoder": "1.0.22",
|
|
30
30
|
"node-forge": "1.3.1",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "dd8c9463981f7dd563f6c925c370c7054ca74adf"
|
|
63
63
|
}
|
|
@@ -78,7 +78,7 @@ export class ParaMobile extends ParaCore {
|
|
|
78
78
|
* @returns {Promise<string>} The biometrics ID.
|
|
79
79
|
*/
|
|
80
80
|
async verifyEmailBiometricsId(verificationCode: string): Promise<string> {
|
|
81
|
-
const webAuthCreateUrl = await super.verifyEmail(verificationCode);
|
|
81
|
+
const webAuthCreateUrl = await super.verifyEmail({ verificationCode });
|
|
82
82
|
const segments = webAuthCreateUrl.split('/');
|
|
83
83
|
const segments2 = segments[segments.length - 1]!.split('?');
|
|
84
84
|
const biometricsId = segments2[0]!;
|
|
@@ -92,7 +92,7 @@ export class ParaMobile extends ParaCore {
|
|
|
92
92
|
* @returns {Promise<string>} The biometrics ID.
|
|
93
93
|
*/
|
|
94
94
|
async verifyPhoneBiometricsId(verificationCode: string): Promise<string> {
|
|
95
|
-
const webAuthCreateUrl = await super.verifyPhone(verificationCode);
|
|
95
|
+
const webAuthCreateUrl = await super.verifyPhone({ verificationCode });
|
|
96
96
|
const segments = webAuthCreateUrl.split('/');
|
|
97
97
|
const segments2 = segments[segments.length - 1]!.split('?');
|
|
98
98
|
const biometricsId = segments2[0]!;
|
|
@@ -239,7 +239,7 @@ export class ReactNativeUtils implements PlatformUtils {
|
|
|
239
239
|
signer: string;
|
|
240
240
|
walletId: string;
|
|
241
241
|
}> {
|
|
242
|
-
const { walletId, protocolId } = await ctx.client.
|
|
242
|
+
const { walletId, protocolId } = await ctx.client.createPregenWallet({
|
|
243
243
|
pregenIdentifier,
|
|
244
244
|
pregenIdentifierType,
|
|
245
245
|
scheme: WalletScheme.ED25519,
|