Add a note

This commit is contained in:
Manav Rathi
2024-06-11 16:31:25 +05:30
parent 237fc3cdb1
commit c4d5bc5aa7

View File

@@ -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");