Skip to content

Commit 785c1c6

Browse files
committed
fixes redirect in manage MFA
1 parent e533963 commit 785c1c6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/core/auth.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,6 @@ export class Auth {
338338
// in case of redirect mode, redirect url will be dapp specified
339339
// in case of popup mode, redirect url will be sdk specified
340340
const defaultParams = {
341-
redirectUrl: `${this.dashboardUrl}/wallet/account`,
342341
dappUrl: `${window.location.origin}${window.location.pathname}`,
343342
};
344343

@@ -347,7 +346,12 @@ export class Auth {
347346
const dataObject: AuthSessionConfig = {
348347
actionType: AUTH_ACTIONS.MANAGE_MFA,
349348
// manage mfa always opens in a new tab, so need to fix the uxMode to redirect.
350-
options: { ...this.options, uxMode: "redirect", sdkMode: SDK_MODE.DEFAULT },
349+
options: {
350+
...this.options,
351+
uxMode: UX_MODE.REDIRECT,
352+
sdkMode: SDK_MODE.DEFAULT,
353+
redirectUrl: `${this.dashboardUrl}/wallet/account`,
354+
},
351355
params: {
352356
...defaultParams,
353357
...params,

0 commit comments

Comments
 (0)