@draftlab/auth 0.1.5 → 0.1.6
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/ui/passkey.js +5 -5
- package/package.json +1 -1
package/dist/ui/passkey.js
CHANGED
|
@@ -68,7 +68,7 @@ const PasskeyUI = (options) => {
|
|
|
68
68
|
// GET authentication options from the endpoint that calls
|
|
69
69
|
// @simplewebauthn/server -> generateAuthenticationOptions()
|
|
70
70
|
const resp = await fetch(
|
|
71
|
-
"./
|
|
71
|
+
"./authenticate-options?userId=" + email + "&rpID=" + rpID
|
|
72
72
|
);
|
|
73
73
|
|
|
74
74
|
const optionsJSON = await resp.json();
|
|
@@ -88,7 +88,7 @@ const PasskeyUI = (options) => {
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
const verificationResp = await fetch(
|
|
91
|
-
"./
|
|
91
|
+
"./authenticate-verify?userId=" +
|
|
92
92
|
email +
|
|
93
93
|
"&rpID=" +
|
|
94
94
|
rpID +
|
|
@@ -206,14 +206,14 @@ const PasskeyUI = (options) => {
|
|
|
206
206
|
// GET registration options from the endpoint that calls
|
|
207
207
|
// @simplewebauthn/server -> generateRegistrationOptions()
|
|
208
208
|
const resp = await fetch(
|
|
209
|
-
"./
|
|
209
|
+
"./register-request?userId=" +
|
|
210
210
|
email +
|
|
211
211
|
"&origin=" +
|
|
212
212
|
origin +
|
|
213
213
|
"&rpID=" +
|
|
214
214
|
rpID +
|
|
215
215
|
"&otherDevice=" +
|
|
216
|
-
otherDevice
|
|
216
|
+
otherDevice
|
|
217
217
|
);
|
|
218
218
|
const optionsJSON = await resp.json();
|
|
219
219
|
|
|
@@ -235,7 +235,7 @@ const PasskeyUI = (options) => {
|
|
|
235
235
|
// @simplewebauthn/server -> verifyRegistrationResponse()
|
|
236
236
|
try {
|
|
237
237
|
const verificationResp = await fetch(
|
|
238
|
-
"./
|
|
238
|
+
"./register-verify?userId=" +
|
|
239
239
|
email +
|
|
240
240
|
"&origin=" +
|
|
241
241
|
origin +
|