File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,7 @@ function uint8arrayToBase64url(bytes) {
201
201
return base64js.fromByteArray(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
202
202
}
203
203
204
- const credentialCreateJson =
205
- fetch(/* ... */) // Make the call that returns the credentialCreateJson above
204
+ fetch(/* ... */) // Make the call that returns the credentialCreateJson above
206
205
.then(credentialCreateJson => // Call WebAuthn ceremony
207
206
navigator.credentials.create(credentialCreateJson))
208
207
.then(publicKeyCredential => ({ // Encode PublicKeyCredential for transport to server (example)
@@ -292,8 +291,7 @@ function uint8arrayToBase64url(bytes) {
292
291
return base64js.fromByteArray(bytes).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
293
292
}
294
293
295
- const credentialGetJson =
296
- fetch(/* ... */) // Make the call that returns the credentialGetJson above
294
+ fetch(/* ... */) // Make the call that returns the credentialGetJson above
297
295
.then(credentialGetJson => // Call WebAuthn ceremony
298
296
navigator.credentials.get(credentialGetJson))
299
297
.then(publicKeyCredential => ({ // Encode PublicKeyCredential for transport to server (example)
You can’t perform that action at this time.
0 commit comments