diff --git a/dashboard/frontend/src/routes/Settings.svelte b/dashboard/frontend/src/routes/Settings.svelte index e70f1db..8af41db 100644 --- a/dashboard/frontend/src/routes/Settings.svelte +++ b/dashboard/frontend/src/routes/Settings.svelte @@ -40,6 +40,9 @@ passkeyLoading = true; passkeyMsg = ""; passkeyErr = ""; try { + if (!window.PublicKeyCredential) { + throw new Error("Passkeys are not supported in this browser or context"); + } const opts = await post("/auth/passkey/register/options"); opts.challenge = base64urlToBuffer(opts.challenge); opts.user.id = base64urlToBuffer(opts.user.id);