Hi, I recently updated to web3auth 7 and have this weird issue. The provider is always set, even if i go icognito or change browsers completely (tried chrome and firefox) and it’s set to an instance of CommonJRPCProvider. In version 5 the provider was set to null if the user was not logged in.
If i try to log out it says that the wallet is not connected.
My question is, why is the provider set if the wallet is not connected and what would be a nice clean way of telling is the user is signed in or not?
- SDK Version:
“@web3auth/base”: “^7.0.4”,
“@web3auth/ethereum-provider”: “^7.0.4”,
“@web3auth/metamask-adapter”: “^7.0.4”,
“@web3auth/no-modal”: “^7.0.4”,
“@web3auth/openlogin-adapter”: “^7.0.4”, - Platform:
macOS
Node 20 - Browser Console Screenshots:
Please provide the Web3Auth initialization and login code snippet below:
const auth = new Web3AuthNoModal(web3AuthConfig);
const privateKeyProvider = new EthereumPrivateKeyProvider({
config: { chainConfig: web3AuthConfig.chainConfig },
});
const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
uxMode: 'popup',
loginConfig: {
jwt: {
verifier: 'web3-auth-verifier-test',
typeOfLogin: 'jwt',
clientId: web3AuthConfig.clientId,
},
},
},
loginSettings: {
mfaLevel: 'none',
},
privateKeyProvider,
});
auth.configureAdapter(openloginAdapter);
await auth.init();