Skip to content

Commit

Permalink
fix: no requests before login
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Jun 27, 2024
1 parent 949ec35 commit ae2ef16
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion static/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { authentication } from "./src/auth/authentication";
import { renderSafeUI } from "./src/webauthn/rendering";
import { webAuthn } from "./src/webauthn/webauthn";


authentication()
.then((ghUser) => {
if (!ghUser) return;
webAuthn(new AbortController(), ghUser).then((result) => {
renderSafeUI(result.signer, result.account)
});
Expand Down
1 change: 0 additions & 1 deletion static/src/webauthn/webauthn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ export async function createPasskeyHandler(abortController: AbortController, ghU

}


if (cred) {
const credUser = {
name: username,
Expand Down

0 comments on commit ae2ef16

Please sign in to comment.