Fix passkey login on non-HTTPS connections

This commit is contained in:
Gan, Jimmy
2026-02-22 16:52:27 +08:00
parent 3c186989b1
commit 2da9d47bdd
+1 -1
View File
@@ -8,7 +8,7 @@
let error = $state("");
let loading = $state(false);
let require2FA = $state(false);
let showPasswordForm = $state(false);
let showPasswordForm = $state(!window.isSecureContext);
function base64urlToBuffer(b64) {
const s = b64.replace(/-/g, '+').replace(/_/g, '/');