Openlogin: mfaLevel option set to 'none' does not work consistently

Hi, we are trying to use Web3Auth to create private keys for users via social logins. We would like to avoid enforcing multi-factor authentication for every user, so that a user can be signed in as soon as possible.

We've noticed in b64Params variable in the search query that there is the mfaLevel set to "none". We've tried getting it to work, but even though the parameter is being passed in the URL, we still see the 2FA prompt for multiple accounts, for example when signing up using Discord and Google. We did succeed using Twitter.
See the URL below.

At the end is the code that I'm using.

Below is some context from a discussion with @shahbaz17 from Discord

It seems there are 3 different scenarios for a user account.

  1. User setup MFA previously and makes sense that it can't be ignored
  2. User has never completed a login ever, yet is still required to setup MFA
  3. User has never completed a login ever and doesn't need to setup MFA

Since scenarios (1) and (3) are expected behavior, let's focus on (2). I think (2) happened as a result of testing.

Steps to repro (2):

Browser: Chrome
Login type: OpenLogin - Google or Facebook

  1. do the normal login flow without setting mfaLevel
  2. cancel login when OpenLogin request to setup MFA
  3. do the login flow again with mfaLevel set to 'none'

Going back to scenario (1), I do agree that requiring the use of MFA when it is setup makes sense, but requiring users to keep MFA forever after it is setup seems a bit extreme, even if the user manual logs in to

import { Web3AuthCore } from @web3auth/core";
import { OpenloginAdapter } from @web3auth/openlogin-adapter”;
import { LOGIN_PROVIDER } from @toruslabs/openlogin”;

const web3auth = new Web3AuthCore({
chainConfig: {
chainNamespace: “other”,

const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
network: ‘mainnet’,
no3PC: true,
loginSettings: {
mfaLevel: “none”,

await web3auth.init();
const provider = await web3auth.connectTo(“openlogin”, {
mfaLevel: “none”,

Originally posted by: Geo25rey

Check the discussion at: