From 574e8de7b669b025d59b65d77735c050134fcfc5 Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Mon, 9 Dec 2024 15:31:00 +0100 Subject: [PATCH] wait for longer --- apps/login/src/components/login-otp.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/login/src/components/login-otp.tsx b/apps/login/src/components/login-otp.tsx index d8afe203db..d63f4f9149 100644 --- a/apps/login/src/components/login-otp.tsx +++ b/apps/login/src/components/login-otp.tsx @@ -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 =