wait for longer

This commit is contained in:
Max Peintner
2024-12-09 15:31:00 +01:00
parent 096486ac55
commit 574e8de7b6

View File

@@ -183,7 +183,7 @@ export function LoginOTP({
function setCodeAndContinue(values: Inputs, organization?: string) { function setCodeAndContinue(values: Inputs, organization?: string) {
return submitCode(values, organization).then(async (response) => { 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 // 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) { if (response) {
const url = const url =