Provider is always set, cannot log out

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?

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();

@denisa.halmaghi Thanks for your recent post.

Your issue has been forwarded to our Dev team and we will get back with furthe rupdates.

Please refer this migration guide so as to understand what changed after v5. It also has a nice clean way of telling when the user is logged in.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.