File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ class default_1 extends Controller {
47
47
}
48
48
}
49
49
catch ( e ) {
50
- this . _dispatchEvent ( 'webauthn:assertion:failure' , { exception : e } ) ;
50
+ this . _dispatchEvent ( 'webauthn:assertion:failure' , { exception : e , assertionResponse : null } ) ;
51
51
return ;
52
52
}
53
53
}
@@ -70,7 +70,7 @@ class default_1 extends Controller {
70
70
}
71
71
}
72
72
catch ( e ) {
73
- this . _dispatchEvent ( 'webauthn:attestation:failure' , { exception : e } ) ;
73
+ this . _dispatchEvent ( 'webauthn:attestation:failure' , { exception : e , assertionResponse : null } ) ;
74
74
return ;
75
75
}
76
76
}
@@ -120,7 +120,7 @@ class default_1 extends Controller {
120
120
body : JSON . stringify ( data )
121
121
} ) ;
122
122
if ( ! optionsResponse . ok ) {
123
- this . _dispatchEvent ( 'webauthn:options:failure' , { } ) ;
123
+ this . _dispatchEvent ( 'webauthn:options:failure' , { exception : null , optionsResponse } ) ;
124
124
return false ;
125
125
}
126
126
const options = await optionsResponse . json ( ) ;
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ export default class extends Controller {
91
91
window . location . replace ( this . requestSuccessRedirectUriValue ) ;
92
92
}
93
93
} catch ( e ) {
94
- this . _dispatchEvent ( 'webauthn:assertion:failure' , { exception : e } ) ;
94
+ this . _dispatchEvent ( 'webauthn:assertion:failure' , { exception : e , assertionResponse : null } ) ;
95
95
return ;
96
96
}
97
97
}
@@ -117,7 +117,7 @@ export default class extends Controller {
117
117
window . location . replace ( this . creationSuccessRedirectUriValue ) ;
118
118
}
119
119
} catch ( e ) {
120
- this . _dispatchEvent ( 'webauthn:attestation:failure' , { exception : e } ) ;
120
+ this . _dispatchEvent ( 'webauthn:attestation:failure' , { exception : e , assertionResponse : null } ) ;
121
121
return ;
122
122
}
123
123
}
@@ -178,7 +178,7 @@ export default class extends Controller {
178
178
body : JSON . stringify ( data )
179
179
} ) ;
180
180
if ( ! optionsResponse . ok ) {
181
- this . _dispatchEvent ( 'webauthn:options:failure' , { } ) ;
181
+ this . _dispatchEvent ( 'webauthn:options:failure' , { exception : null , optionsResponse } ) ;
182
182
return false ;
183
183
}
184
184
You can’t perform that action at this time.
0 commit comments