File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
webauthn-server-demo/src/main/webapp Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 332
332
return serverResponse ;
333
333
}
334
334
335
- function finishCeremony ( response ) {
335
+ async function finishCeremony ( response ) {
336
336
const callbacks = ceremonyState . callbacks ;
337
337
const request = ceremonyState . request ;
338
338
const statusStrings = ceremonyState . statusStrings ;
345
345
}
346
346
showAuthenticatorResponse ( response ) ;
347
347
348
- return submitResponse ( useU2f ? urls . finishU2f : urls . finish , request , response )
349
- . then ( data => {
350
- if ( data && data . success ) {
351
- setStatus ( statusStrings . success ) ;
352
- } else {
353
- setStatus ( 'Error!' ) ;
354
- }
355
- showServerResponse ( data ) ;
356
- return data ;
357
- } ) ;
348
+ const data = await submitResponse ( useU2f ? urls . finishU2f : urls . finish , request , response ) ;
349
+
350
+ if ( data && data . success ) {
351
+ setStatus ( statusStrings . success ) ;
352
+ } else {
353
+ setStatus ( 'Error!' ) ;
354
+ }
355
+ showServerResponse ( data ) ;
356
+
357
+ return data ;
358
358
}
359
359
360
360
function registerResidentKey ( event ) {
You can’t perform that action at this time.
0 commit comments