Wagmi Connector and staying connected

Hello!

I seem to be having some issues getting the wallet connected via the web3auth and wagmi connector to stay connected throughout the app session. I am able to successfully connect and sign a message on the sign in page, but anywhere else in the app useAccount() from wagmi hook always has undefined as address and isConnected false. Is there something I should be looking out for on why this is the case? The wagmi context provider is higher order than any of the internal app components so it should be accessible everywhere.



Originally posted by: 0xM4m4n

Check the discussion at: https://github.com/orgs/Web3Auth/discussions/1268

I was trying out the native way (without using wagmi connector) of implementing web3Auth and there I saw there was no easy way of stying connected than building your own eagerConnect function that checks in a useEffect if user has logged in already from the storage. Session prop on initialisation of the web3auth instance didn't really help. Could these 2 things be connected?



Originally posted by: devdomsos

@yashovardhan I’m also interested in wagmi integration stability. What is your response to this issue?

Did you solve this issue and if you did, how?

@gorkem You can refer to this thread Keep web3auth session persistent after page refresh - #3 by andriyantonenko3.16

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