I am using @web3auth/modal. The above modal continues to appear every time i refresh the page after logging in. How can I remove it?
const web3AuthInstance = new Web3Auth({
chainConfig: {
// * Testnet
chainNamespace: 'eip155',
chainId: '0x13881', // hex of 80001, polygon testnet
rpcTarget: 'https://rpc.ankr.com/polygon_mumbai',
displayName: 'Polygon Mainnet',
blockExplorer: 'https://mumbai.polygonscan.com/',
ticker: 'MATIC',
tickerName: 'Matic'
},
clientId,
uiConfig: {
loginMethodsOrder: ['google', 'facebook', 'kakao'],
appLogo: '/favicon.ico'
},
authMode: 'WALLET',
storageKey: 'session',
sessionTime: 7200
});
const openloginAdapter = new OpenloginAdapter({
adapterSettings: {
clientId,
network: 'testnet',
uxMode: 'popup'
},
loginSettings: {
mfaLevel: 'none'
}
});
web3AuthInstance.configureAdapter(openloginAdapter);
subscribeAuthEvents(web3AuthInstance);
setWeb3Auth(web3AuthInstance);
await web3AuthInstance.initModal({
modalConfig: {
[WALLET_ADAPTERS.OPENLOGIN]: {
label: 'openlogin',
loginMethods: web3AuthLoginMethods
// setting it to false will hide all social login methods from modal.
}
}
});
Originally posted by: blockodyssey-bjkim
Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1024