fix(auth): temporarily disable redirection for new users without MFA enrolled

This commit is contained in:
sharath 2025-07-22 11:02:11 +00:00
parent 7b66d6d58c
commit 87ec0230c5
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ export function BackgroundAALChecker({
if (current_level === "aal1" && next_level === "aal1") { if (current_level === "aal1" && next_level === "aal1") {
// New user has no MFA enrolled - redirect to enrollment // New user has no MFA enrolled - redirect to enrollment
console.log('Background: New user without MFA enrolled, redirecting to phone verification'); console.log('Background: New user without MFA enrolled, redirecting to phone verification');
router.push(redirectTo); // Temporarily disabled
// router.push(redirectTo);
return; return;
} }
// If new user has MFA enrolled, follow standard AAL flow below // If new user has MFA enrolled, follow standard AAL flow below