Skip to content

Commit

Permalink
Stop preventing a non-existing event
Browse files Browse the repository at this point in the history
Probably fixes #2
  • Loading branch information
foodelevator committed Nov 6, 2024
1 parent 7015ebd commit 2bb6f06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion templates/passkey.templ
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ templ PasskeyLoginForm(kthid string, credAss *protocol.CredentialAssertion) {
for (let ac of credAss.publicKey.allowCredentials) {
ac.id = decodebase64url(ac.id);
}
event.preventDefault();
try {
let cred = await navigator.credentials.get(credAss);
let res = await fetch("/login/passkey/finish", {
Expand Down
10 changes: 5 additions & 5 deletions templates/passkey_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2bb6f06

Please sign in to comment.