const openloginAdapter = new OpenloginAdapter({
loginSettings: {
mfaLevel: ‘none’, // Pass on the mfa level of your choice: default, optional, mandatory, none
},
adapterSettings: {
whiteLabel: {
appName: appName,
appUrl: appUrl,
logoLight: logo,
logoDark: logo,
defaultLanguage: ‘en’,
mode: ‘auto’, // whether to enable dark mode. defaultValue: false
theme: {
primary: ‘#f90bd5’,
},
},
uxMode: ‘redirect’,
useLogoLoader: true,
useCoreKitKey: true,
},
});
hi @steve.b,
can you try with a different social login and tell if you are having the same issue ?
It is possible that you have already enabled MFA with the login you are using. Once MFA has been activated, it cannot be undone.
We have been testing with brand new emails using email login method. It asks randomly for MFA that cannot be skipped. We have not tested with other social login methods.
We have also updated to V8 and the issue persists.
Please let us know if you have any questions. We are suspecting that we are loosing quite many signup because of that.
Please note we were on the growth plan at 69$. We are not sure how or if the change of pricing impacted our plan as of March 1st regarding the MFA settings.
Can you make sure if that code is taken into consideration under the new plan or if that’s another issue:
const openloginAdapter = new OpenloginAdapter({
loginSettings: {
mfaLevel: ‘none’,
},
hi @steve.b,
Can I asked you that if MFA is appearing randomly or every 3 logins ?
(Setting mfa level to default
will present mfa screen to user on every third login.)
It would be great if you can share with me more code on how you are doing Web3Auth initialization and login code snippet. Please copy and paste the code directly using this button from the textArea
to format it correctly. Also if you want you can share with me your repository and a working website, will be great so I can better assist you.
the mfa process come for the first use when a user register for the first time it ask sometime to setup the MFA this step is not skippable and our client have not a registered account in another DAPP using web3auth.
Example i create a new email and register with email and ask me to setup the MFA
const chainConfig = {
chainNamespace: 'eip155',
rpcTarget: 'https://polygon-mainnet.g.alchemy.com/v2/xxxxxxx',
chainId: this.chainId, // hex of 137, polygon mainnet
wsTarget:'wss://polygon-mainnet.g.alchemy.com/v2/xxxxxxx'
}
const privateKeyProvider = new EthereumPrivateKeyProvider({
config: { chainConfig: chainConfig }
});
const _web3auth = new Web3Auth({
clientId: this.clientId, // Get your Client ID from Web3Js Dashboard
web3AuthNetwork: "mainnet",
storageKey: 'local',
uiConfig: {
appName: appName,
logoLight: logoPetit,
logoDark: logoPetit,
appLogo: logoPetit,
appUrl: appUrl,
mode: 'auto',
loginMethodsOrder: ['google', 'facebook', 'apple', 'linkedin'],
},
sessionTime:86400*7,
privateKeyProvider: privateKeyProvider,
});
const openloginAdapter = new OpenloginAdapter({
loginSettings: {
mfaLevel: 'none', // Pass on the mfa level of your choice: default, optional, mandatory, none
},
adapterSettings: {
sessionTime:86400*7,
whiteLabel: {
appName: appName,
appUrl: appUrl,
logoLight: logo,
logoDark: logo,
defaultLanguage: 'en',
mode: 'auto', // whether to enable dark mode. defaultValue: false
theme: {
primary: '#f90bd5',
},
},
uxMode: 'redirect',
useLogoLoader: true,
useCoreKitKey: true,
},
});
_web3auth.configureAdapter(openloginAdapter);
this.subscribeAuthEvents(_web3auth);
try {
console.log('initWeb3auth web3auth.initModal() 1');
await _web3auth.initModal({
modalConfig: {
// Disable Wallet Connect V2
[WALLET_ADAPTERS.WALLET_CONNECT_V2]: {
label: 'wallet_connect',
showOnModal: false,
},
// Disable Metamask
[WALLET_ADAPTERS.METAMASK]: {
label: 'metamask',
showOnModal: false,
},
// Disable Metamask
[WALLET_ADAPTERS.TORUS_EVM]: {
label: 'metamask',
showOnModal: false,
},
},
});
this.web3auth = _web3auth;
console.log('initWeb3auth _web3auth', _web3auth);
console.log('initWeb3auth _web3auth.connected', _web3auth.connected);
if (_web3auth.connected) {
//alert(1)
console.log('initWeb3auth already connected 1', _web3auth.connected);
this.provider = _web3auth.provider;
this.web3 = new Web3(this.provider);
this.connected = 1;
this.accounts = await this.web3.eth.getAccounts();
console.log('initWeb3auth already connected _web3auth', _web3auth);
console.log('initWeb3auth already connected this.provider', this.provider);
return 1;
}
return 0;
} catch (error) {
console.error('initWeb3auth error', error);
return -1;
}
}
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.