Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
shihjay2 committed Sep 25, 2024
1 parent 0e43f92 commit ab46264
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/magicLink/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export default function Login({ challenge, clinical=false, authonly=false, clien
let proceed = false;
let timer = 0;
while (!check) {
if (timer < 200) {
console.log(timer)
if (timer < 100) {
await sleep(5);
const nonce_check = await fetch("/api/auth/check",
{ method: "POST", headers: {"Content-Type": "application/json"}, body: JSON.stringify({nonce: nonce}) })
Expand Down Expand Up @@ -172,6 +173,7 @@ export default function Login({ challenge, clinical=false, authonly=false, clien
setError(message);
}
} else {
setIsChecking(false);
setIsTimeout(true);
}
} else {
Expand Down

0 comments on commit ab46264

Please sign in to comment.