diff --git a/src/lib/webAuthnCeremony.ts b/src/lib/webAuthnCeremony.ts index 21a814b1..4738b83c 100644 --- a/src/lib/webAuthnCeremony.ts +++ b/src/lib/webAuthnCeremony.ts @@ -52,7 +52,7 @@ export function keys(options: keys.Options = {}): WebAuthnCeremony.WebAuthnCerem const response = await fetch(`${url}/${credential.id}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, - body: JSON.stringify({ credential, publicKey }), + body: JSON.stringify({ credential: credential.raw, publicKey }), }) if (!response.ok) { const { error } = (await response.json().catch(() => ({}))) as { error?: string }