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