diff --git a/client/src/services/auth.ts b/client/src/services/auth.ts index 5f9e19b..62c9473 100644 --- a/client/src/services/auth.ts +++ b/client/src/services/auth.ts @@ -78,7 +78,7 @@ export async function registerUser(username: string): Promise { + // Log browser supported extensions to diagnose PRF availability + console.log( + 'Browser supported WebAuthn extensions:', + window.PublicKeyCredential && (window.PublicKeyCredential as any).getClientExtensionResults + ? (window.PublicKeyCredential as any).getClientExtensionResults() + : 'none' + ) + // 1. Get authentication options const optionsRes = await fetch(`${API_BASE}/login-options`, { method: 'POST', @@ -177,7 +185,7 @@ export async function loginUser(username?: string): Promise { } // 2. Start biometric Passkey verification - const credentialResponse = await startAuthentication(options) + const credentialResponse = await startAuthentication({ optionsJSON: options }) // 3. Verify assertion on the server const verifyRes = await fetch(`${API_BASE}/login-verify`, {