@getpara/react-native-wallet 1.13.0-dev.2 → 1.13.0-dev.4

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: false });
184
- const { challenge, allowedPublicKeys } = yield this.ctx.client.getWebChallenge(authInfo === null || authInfo === void 0 ? void 0 : authInfo.auth);
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpara/react-native-wallet",
3
- "version": "1.13.0-dev.2",
3
+ "version": "1.13.0-dev.4",
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)",
@@ -42,10 +42,6 @@
42
42
  "sideEffects": [
43
43
  "dist/shim.js"
44
44
  ],
45
- "scripts": {
46
- "build": "rm -rf dist && tsc",
47
- "compile-signer": "bash ./scripts/compileSigner.sh"
48
- },
49
45
  "dependencies": {
50
46
  "@getpara/core-sdk": "1.12.0",
51
47
  "@getpara/user-management-client": "1.12.0",
@@ -84,5 +80,9 @@
84
80
  },
85
81
  "publishConfig": {
86
82
  "access": "public"
83
+ },
84
+ "scripts": {
85
+ "build": "rm -rf dist && tsc",
86
+ "compile-signer": "bash ./scripts/compileSigner.sh"
87
87
  }
88
- }
88
+ }
@@ -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: false });
192
+ const authInfo = extractAuthInfo(auth, { isRequired: true });
193
193
 
194
- const { challenge, allowedPublicKeys } = await this.ctx.client.getWebChallenge(authInfo?.auth);
194
+ const { challenge, allowedPublicKeys } = await this.ctx.client.getWebChallenge(authInfo.auth);
195
195
 
196
196
  const requestJson: PasskeyGetRequest = {
197
197
  challenge,