Torus Wallet disappears on reload (Web3Auth is not connected)

I’m following the vue guide here

It works and I can log in however when I reload the page the torus wallet icon is gone and it seems the provider is missing, how can I make the wallet persist reloads ?

edit: I noticed that torus wallet when i try to use it reports (Web3Auth is not connected) even though I have called connect … how can I ensure it persists connection on reload.

Thanks
Cormac

1 Like

Getting the same issue.
Anyone have any clue how to resolve this?

I resolved this issue by calling initWithProvider on reload:

const userInfo = await web3Auth.getUserInfo()
await torusPlugin.initWithProvider(provider, userInfo);

Hi @boblilian1234567 @cormacguerin

Could you please update the web3auth SDKs to version 6? For detailed instructions on how to migrate from version 5 to version 6, please refer to the migration guide available at here. Additionally, you can find useful examples in the pnp-examples repository.

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