diff --git a/ui/src/api/logto-account-api.ts b/ui/src/api/logto-account-api.ts index bcf5759..bd49e3d 100644 --- a/ui/src/api/logto-account-api.ts +++ b/ui/src/api/logto-account-api.ts @@ -40,7 +40,7 @@ export async function registerPasskey(getAccountToken: () => Promise): P 'POST', '/verifications/web-authn/registration/verify', token, - { verificationRecordId, payload: credential }, + { verificationRecordId, payload: { ...credential, type: 'WebAuthn' } }, ); if (!verifyRes.ok) { const err = await verifyRes.json().catch(() => ({}));