How to skip mfa setup completely from user login process?

I don't run a very critical application so I would like my users to skip MFA



Originally posted by: 1swaraj

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/317

Yes, you can skip mfa if you want. Web3Auth's OpenloginAdapter accepts mfaLevel parameter in constructor to configure the display of mfa screen:-

Currently following values are supported:-

  • 'default' Setting mfa level to default will present mfa screen to user on every third login.
  • 'optional' Setting mfa level to default will present mfa screen to user on every login but user can skip it.
  • 'mandatory' Setting mfa level to mandatory will make it mandatory for user to setup mfa after login.
  • 'none' Setting mfa level to none will make the user skip the mfa setup screen

You can read more about it here: https://web3auth.io/docs/sdk/web/core/usage#openloginloginparams



Originally posted by: himanshuchawla009

For web3auth/web3auth, use the below code to disable the 2fa flow.

const openloginAdapter = new OpenloginAdapter({
  loginSettings: {
    mfaLevel: "none",
  },
});

See https://web3auth.io/docs/sdk/web/openlogin#multi-factor-authentication



Originally posted by: shahbaz17