mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-25 16:17:42 +00:00
wait for 2 seconds
This commit is contained in:
@@ -182,6 +182,9 @@ 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));
|
||||
|
||||
if (response) {
|
||||
const url =
|
||||
authRequestId && response.sessionId
|
||||
|
Reference in New Issue
Block a user