@alore/auth-react-sdk 1.1.0-alpha.12 → 1.1.0-alpha.13
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.
- package/dist/utils/AloreAuth.js +3 -1
- package/package.json +2 -2
package/dist/utils/AloreAuth.js
CHANGED
|
@@ -297,7 +297,9 @@ export class AloreAuth {
|
|
|
297
297
|
throw new Error(optionsResponse.statusText);
|
|
298
298
|
}
|
|
299
299
|
const optionsData = yield optionsResponse.json();
|
|
300
|
-
const credential = yield startAuthentication(
|
|
300
|
+
const credential = yield startAuthentication({
|
|
301
|
+
optionsJSON: optionsData.requestChallengeResponse.publicKey,
|
|
302
|
+
}).catch((err) => {
|
|
301
303
|
throw new Error(err);
|
|
302
304
|
});
|
|
303
305
|
const response = yield this.fetchWithProgressiveBackoff('/auth/v1/hw-2fa-finish-verification', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alore/auth-react-sdk",
|
|
3
|
-
"version": "1.1.0-alpha.
|
|
3
|
+
"version": "1.1.0-alpha.13",
|
|
4
4
|
"repository": "https://github.com/0xCarbon/alore-js",
|
|
5
5
|
"description": "SDK for Alore Auth",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"node": ">=20.0.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@simplewebauthn/browser": "
|
|
23
|
+
"@simplewebauthn/browser": "13.3.0",
|
|
24
24
|
"argon2-browser": "1.18.0",
|
|
25
25
|
"ethers": "6.7.1",
|
|
26
26
|
"js-cookie": "3.0.5",
|