# \[Archive\] Web3auth torus SSO session is not preserved

**URL:** <https://builder.metamask.io/t/archive-web3auth-torus-sso-session-is-not-preserved/2373>\
**Category:** Embedded Wallets (Web3Auth)\
**Created:** [October 5, 2022, 2:04pm UTC](https://builder.metamask.io/t/archive-web3auth-torus-sso-session-is-not-preserved/2373 "2022-10-05T14:04:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [October 5, 2022, 2:04pm UTC](https://builder.metamask.io/t/archive-web3auth-torus-sso-session-is-not-preserved/2373/1 "2022-10-05T14:04:21Z")

</div>

> **🏛 Archived Content from Web3Auth Community**
> 
> This topic was originally posted by **githubdiscussions** on 10/5/2022.  
> This content has been migrated from our previous community forum to preserve valuable discussions.

* * *

### 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](https://canada1.discourse-cdn.com/flex011/uploads/metamaskbuilderhub/original/2X/1/127589cf737fbd9531e7b43ab90fd5624a0d8b02.png)](https://user-images.githubusercontent.com/28793091/194079761-78fa4199-b28c-4fb2-b07d-0c6be5bb8c0e.png)

  
   
 Originally posted by: [softcheetah](https://github.com/softcheetah)  
   
 Check the discussion at: [https://github.com/orgs/Web3Auth/discussions/679](https://github.com/orgs/Web3Auth/discussions/679)

---

<div class="post-metadata">

**Author:** ![githubdiscussions](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@githubdiscussions](https://builder.metamask.io/u/githubdiscussions)\
**Post date:** [October 12, 2022, 1:31am UTC](https://builder.metamask.io/t/archive-web3auth-torus-sso-session-is-not-preserved/2373/2 "2022-10-12T01:31:53Z")

</div>

Hey [@softcheetah](https://github.com/softcheetah)

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

  
   
 Originally posted by: [shahbaz17](https://github.com/shahbaz17)
