How to remove this modal

스크린샷 2022-12-07 오후 4 16 49

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

Hello @blockodyssey-bjkim,

I'm also encountering this issue, and I'm looking for a solution. This problem typically occurs when I log in using a social account. I'm looking forward to seeing what solutions other users may have found.

Best regards



Originally posted by: sultanpeyek