@alore/auth-react-sdk 1.0.5-alpha → 1.0.6-alpha
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 -3
- package/package.json +1 -1
package/dist/utils/AloreAuth.js
CHANGED
|
@@ -199,7 +199,7 @@ export class AloreAuth {
|
|
|
199
199
|
return data;
|
|
200
200
|
}),
|
|
201
201
|
finishRegisterPasskey: (context, event) => __awaiter(this, void 0, void 0, function* () {
|
|
202
|
-
const { rpDomain
|
|
202
|
+
const { rpDomain } = context.authProviderConfigs || {};
|
|
203
203
|
const { email, nickname, device, passkeyRegistration } = event.payload || {};
|
|
204
204
|
const response = yield this.fetchWithProgressiveBackoff('/auth/v1/account-registration-passkey-finish', {
|
|
205
205
|
method: 'POST',
|
|
@@ -213,7 +213,6 @@ export class AloreAuth {
|
|
|
213
213
|
passkeyRegistration,
|
|
214
214
|
sessionId: context.sessionId,
|
|
215
215
|
rpOrigin: rpDomain,
|
|
216
|
-
firebaseOptions,
|
|
217
216
|
}),
|
|
218
217
|
});
|
|
219
218
|
const data = yield response.json();
|
|
@@ -241,7 +240,7 @@ export class AloreAuth {
|
|
|
241
240
|
throw new Error(data.message || data.error || data);
|
|
242
241
|
}),
|
|
243
242
|
finishPasskeyAuth: (context, event) => __awaiter(this, void 0, void 0, function* () {
|
|
244
|
-
const { rpDomain } = context.authProviderConfigs || {};
|
|
243
|
+
const { rpDomain, firebaseOptions } = context.authProviderConfigs || {};
|
|
245
244
|
const { passkeyAuth } = event.payload;
|
|
246
245
|
const response = yield this.fetchWithProgressiveBackoff(`/auth/v1/login-passkey-finish`, {
|
|
247
246
|
method: 'POST',
|
|
@@ -252,6 +251,7 @@ export class AloreAuth {
|
|
|
252
251
|
passkeyAuth,
|
|
253
252
|
sessionId: context.sessionId,
|
|
254
253
|
rpOrigin: rpDomain,
|
|
254
|
+
firebaseOptions,
|
|
255
255
|
}),
|
|
256
256
|
});
|
|
257
257
|
const data = yield response.json();
|