How to connect wallet automaticlly when user check in

SDK: noModal v7
provider: ethereum
adapter: OpenloginAdapter

I logged in with google, when I reopen the page, It always fail like this:


It shows web3auth has connected, but it not ready, why this error happen?
What’s the correct login flow?
And I can’t get address from signer because it failed when I call getSigner()

This error means that your initialisation function is not properly executed.

Use the following in this order:

Instantiate Web3Auth
Instantiate Openlogin Adapter
web3auth.configureAdapter(openloginAdapter);
await web3auth.initModal();
await web3auth.connect();

The signer issue you have already created a seperate thread so refer to that for tracking.

Yes, I do this flow, It’s ok now, thank you

1 Like