File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class default_1 extends Controller {
39
39
}
40
40
async _processSignin ( optionsResponseJson , useBrowserAutofill ) {
41
41
try {
42
- const authenticatorResponse = await startAuthentication ( optionsResponseJson , useBrowserAutofill ) ;
42
+ const authenticatorResponse = await startAuthentication ( { optionsJSON : optionsResponseJson , useBrowserAutofill } ) ;
43
43
this . _dispatchEvent ( 'webauthn:authenticator:response' , { response : authenticatorResponse } ) ;
44
44
const assertionResponse = await this . _getAssertionResponse ( authenticatorResponse ) ;
45
45
if ( assertionResponse !== false && this . requestSuccessRedirectUriValue ) {
@@ -62,7 +62,7 @@ class default_1 extends Controller {
62
62
if ( ! optionsResponseJson ) {
63
63
return ;
64
64
}
65
- const authenticatorResponse = await startRegistration ( optionsResponseJson ) ;
65
+ const authenticatorResponse = await startRegistration ( { optionsJSON : optionsResponseJson } ) ;
66
66
this . _dispatchEvent ( 'webauthn:authenticator:response' , { response : authenticatorResponse } ) ;
67
67
const attestationResponseJSON = await this . _getAttestationResponse ( authenticatorResponse ) ;
68
68
if ( attestationResponseJSON !== false && this . creationSuccessRedirectUriValue ) {
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export default class extends Controller {
83
83
private async _processSignin ( optionsResponseJson : Object , useBrowserAutofill : boolean ) : Promise < void > {
84
84
try {
85
85
// @ts -ignore
86
- const authenticatorResponse = await startAuthentication ( optionsResponseJson , useBrowserAutofill ) ;
86
+ const authenticatorResponse = await startAuthentication ( { optionsJSON : optionsResponseJson , useBrowserAutofill } ) ;
87
87
this . _dispatchEvent ( 'webauthn:authenticator:response' , { response : authenticatorResponse } ) ;
88
88
89
89
const assertionResponse = await this . _getAssertionResponse ( authenticatorResponse ) ;
@@ -109,7 +109,7 @@ export default class extends Controller {
109
109
}
110
110
111
111
// @ts -ignore
112
- const authenticatorResponse = await startRegistration ( optionsResponseJson ) ;
112
+ const authenticatorResponse = await startRegistration ( { optionsJSON : optionsResponseJson } ) ;
113
113
this . _dispatchEvent ( 'webauthn:authenticator:response' , { response : authenticatorResponse } ) ;
114
114
115
115
const attestationResponseJSON = await this . _getAttestationResponse ( authenticatorResponse ) ;
You can’t perform that action at this time.
0 commit comments