mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 09:36:12 +00:00
refactor: update options API for simplewebauthn (#543)
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
// Get access token if not signed in
|
||||
if (!$userStore?.id) {
|
||||
const loginOptions = await webauthnService.getLoginOptions();
|
||||
const authResponse = await startAuthentication(loginOptions);
|
||||
const authResponse = await startAuthentication({optionsJSON: loginOptions});
|
||||
const user = await webauthnService.finishLogin(authResponse);
|
||||
userStore.setUser(user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user