From 4b0e2dc77facdfc6b673334993af97421a4d994f Mon Sep 17 00:00:00 2001 From: Archit Date: Thu, 16 Jan 2025 17:54:18 +0530 Subject: [PATCH] use redirect mode always for manage mfa --- src/core/auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/auth.ts b/src/core/auth.ts index d9ced0cb..adc0f591 100644 --- a/src/core/auth.ts +++ b/src/core/auth.ts @@ -319,7 +319,8 @@ export class Auth { const dataObject: AuthSessionConfig = { actionType: AUTH_ACTIONS.MANAGE_MFA, - options: this.options, + // manage mfa always opens in a new tab, so need to fix the uxMode to redirect. + options: { ...this.options, uxMode: "redirect" }, params: { ...defaultParams, ...params,