Prefers to use localStorage instead of sessionStorage for torus iframe

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