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) {
45
45
}
46
46
cache .Set (buildCachePasskeyRegKey (u .ID ), sessionData , passkeyTimeout )
47
47
48
- c .JSON (http .StatusOK , options )
48
+ c .JSON (http .StatusOK , options . Response )
49
49
}
50
50
51
51
func FinishPasskeyRegistration (c * gin.Context ) {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ const regLoading = ref(false)
15
15
async function registerPasskey() {
16
16
regLoading .value = true
17
17
try {
18
- const options = await passkey .begin_registration ()
18
+ const optionsJSON = await passkey .begin_registration ()
19
19
20
- const attestationResponse = await startRegistration (options . publicKey )
20
+ const attestationResponse = await startRegistration ({ optionsJSON } )
21
21
22
22
await passkey .finish_registration (attestationResponse , passkeyName .value )
23
23
You can’t perform that action at this time.
0 commit comments