Web3auth torus SSO session is not preserved

Steps to reproduce

  • Instantiate @web3auth/core
  • Configure @web3auth/torus-evm-adapter
  • Initialize Web3Auth
    • await web3auth.init()
  • Log in using Torus Google SSO
    • await web3auth.connectTo(WALLET_ADAPTERS.TORUS_EVM)
  • Reload the page
    • Now, it does all initialization steps again.

Expected behavior

await web3auth.init() simply initializes web3auth and torus SSO session is preserved.

Current behavior

await web3auth.init() displays this popup asking me to login again.
Screen Shot 2022-10-05 at 10 02 10 AM



Originally posted by: softcheetah

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

Hey @softcheetah

You can use the session to persist the web3auth state.
const [web3auth, setWeb3auth] = useState()



Originally posted by: shahbaz17