Skip to content

Commit

Permalink
Revert error on success in login methods
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek3255 committed Apr 12, 2024
1 parent 5ae86e9 commit e6c0530
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ const LoginFactor = ({
} else {
throw new Error(res.status);
}
} else {
setError(null);
}
} else {
const res = await updateSecondaryFactors(tenantInfo.tenantId, id, !doesFactorExist);
Expand All @@ -170,6 +172,8 @@ const LoginFactor = ({
} else {
throw new Error(res.status);
}
} else {
setError(null);
}

if (res.status === "OK" && res.isMFARequirementsForAuthOverridden) {
Expand Down

0 comments on commit e6c0530

Please sign in to comment.