Skip to content

Commit

Permalink
wait for longer
Browse files Browse the repository at this point in the history
  • Loading branch information
peintnermax committed Dec 9, 2024
1 parent 096486a commit 574e8de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/login/src/components/login-otp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function LoginOTP({
function setCodeAndContinue(values: Inputs, organization?: string) {
return submitCode(values, organization).then(async (response) => {
// Wait for 2 seconds to avoid eventual consistency issues with an OTP code being verified in the /login endpoint
await new Promise((resolve) => setTimeout(resolve, 2000));
await new Promise((resolve) => setTimeout(resolve, 4000));

if (response) {
const url =
Expand Down

0 comments on commit 574e8de

Please sign in to comment.