Skip to content

Commit

Permalink
fix enablemfa data object defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
chaitanyapotti committed Jan 9, 2024
1 parent da37e3b commit 63c1c05
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion packages/openlogin/src/OpenLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,16 @@ class OpenLogin {
params: {
...defaultParams,
...params,
loginProvider: this.state.userInfo.typeOfLogin,
extraLoginOptions: {
login_hint: this.state.userInfo.verifierId,
},
mfaLevel: "mandatory",
},
sessionId: this.sessionId,
};

const result = await this.openloginHandler(`${this.baseUrl}/start`, dataObject, getTimeout(params.loginProvider));
const result = await this.openloginHandler(`${this.baseUrl}/start`, dataObject, getTimeout(dataObject.params.loginProvider));
if (this.options.uxMode === UX_MODE.REDIRECT) return null;
if (result.error) {
this.dappState = result.state;
Expand Down Expand Up @@ -305,6 +309,10 @@ class OpenLogin {
params: {
...defaultParams,
...params,
loginProvider: this.state.userInfo.typeOfLogin,
extraLoginOptions: {
login_hint: this.state.userInfo.verifierId,
},
},
};

Expand Down

0 comments on commit 63c1c05

Please sign in to comment.