mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-16 17:35:17 +00:00
refactor: update options API for simplewebauthn (#543)
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
async function createPasskey() {
|
||||
try {
|
||||
const opts = await webauthnService.getRegistrationOptions();
|
||||
const attResp = await startRegistration(opts);
|
||||
const attResp = await startRegistration({optionsJSON: opts});
|
||||
const passkey = await webauthnService.finishRegistration(attResp);
|
||||
|
||||
passkeys = await webauthnService.listCredentials();
|
||||
|
||||
Reference in New Issue
Block a user