hi i have enabled mfa with Open Login Adapter using cognito and provider returns an address. but when i implement single factor auth without openloginadaptor it returns a different address. The custom login providers (cognito) and the emails remain the same but it end up giving a different wallet address. I was thinking to get exactly the same address from the same email. Is it supposed to be so?
this provider with mfa returns address 0x5844762a298d6A63e1b302e4382a91b02FA4404D
Originally posted by: irfanonk
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1174
const web3AuthProvider = await web3Auth?.connect({
verifier: 'my-verifier-name', // verifier that you created earlier from web3auth dashboard.
verifierId: sub, // user's id from firebase login response or this can be any unique user's id like email etc.
idToken
});
const _provider = new providers.Web3Provider(web3AuthProvider);
const signer = _provider.getSigner();
const address = await signer.getAddress();
console.log('address', address);
const user = parseToken(idToken);
console.log('User info', { user, signer, address });
and that provider with sfa returns address 0x35318fF704DaF98C0FC3B11AD17752d86caFDe8C
Originally posted by: irfanonk
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1174