From c4d5bc5aa7c529cada0bc5be51a0a83d7242ea48 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Tue, 11 Jun 2024 16:31:25 +0530 Subject: [PATCH] Add a note --- web/apps/accounts/src/pages/passkeys/verify.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/apps/accounts/src/pages/passkeys/verify.tsx b/web/apps/accounts/src/pages/passkeys/verify.tsx index a7694e57a2..ab79c53709 100644 --- a/web/apps/accounts/src/pages/passkeys/verify.tsx +++ b/web/apps/accounts/src/pages/passkeys/verify.tsx @@ -91,6 +91,10 @@ const Page = () => { setStatus("waitingForUser"); + // Safari throws "NotAllowedError: The document is not focused" if + // the console is open when we call `navigator.credentials.create`. + // Not adding any workarounds, just documenting their incompetence. + const credential = await signChallenge(options.publicKey); if (!credential) { setStatus("failed");