[Archive] Prefers to use localStorage instead of sessionStorage for torus iframe

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by githubdiscussions on 10/13/2022.
This content has been migrated from our previous community forum to preserve valuable discussions.


Could someone help me find the solution?
I want to use localStorage instead of sessionStorage for torus iframe.
But, I don't know what param to pass to web3auth.init()



Originally posted by: softcheetah

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

Hey, Thank you reaching out.

  1. Are you using torus-embed? If so, the option is removed(The docs you are referring are old, Please refer to https://docs.web3auth.io. ). Right now default is sessionStorage for iframe from torus-embed.
  2. If you are using torus wallet ui plugin, then there is no option to choose between localStorage and sessionStorage. Default is sessionStorage.


Originally posted by: rinzler99