File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/src/views/preference/components Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func BeginPasskeyRegistration(c *gin.Context) {
4545 }
4646 cache .Set (buildCachePasskeyRegKey (u .ID ), sessionData , passkeyTimeout )
4747
48- c .JSON (http .StatusOK , options )
48+ c .JSON (http .StatusOK , options . Response )
4949}
5050
5151func FinishPasskeyRegistration (c * gin.Context ) {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ const regLoading = ref(false)
1515async function registerPasskey() {
1616 regLoading .value = true
1717 try {
18- const options = await passkey .begin_registration ()
18+ const optionsJSON = await passkey .begin_registration ()
1919
20- const attestationResponse = await startRegistration (options . publicKey )
20+ const attestationResponse = await startRegistration ({ optionsJSON } )
2121
2222 await passkey .finish_registration (attestationResponse , passkeyName .value )
2323
You can’t perform that action at this time.
0 commit comments