Web3Auth iOS Safari Refresh Logout Issue

If I refresh(Pull-to-refresh) the web page(with web3auth built in) several times(more than 3 times) in an iOS Safari environment, I lose the login information that I previously accessed. In other words, it is logged out.

It was fine in the other environment. (iOS Chrome, AOS …)

The video and screenshots below change the client ID and chain environment (testnet) based on the demo code, and were tested by inserting only some consoles.

...
 await web3auth.init();
 console.log('@@Web3auth:', web3auth); // added
 if (web3auth.provider) {
   setProvider(web3auth.provider);
   console.log('@@Web3auth.provider:', web3auth.provider); // added
 }
...

Please provide the following details too when asking for help in this category:

  • SDK Version: 5.2.0 (react)

  • Platform: iOS (Mobile) Safari

  • Browser Console Screenshots:

  • Related to Custom Authentication? Please provide the following info too: (Optional)

    • Verifier Name:
    • JWKS Endpoint:
    • Sample idToken(JWT)

Please provide the Web3Auth initialization and login code snippet below:

@bjkim Thanks for your patience.

Your issue has been submitted to our team. We will get back with further updates once more information becomes available.

Hey @bjkim

Sorry for the delayed reply from our end. Can you give this a try on Web3Auth v6? I think this issue should be resolved generally in that. We store the session value in the browser local storage, it might have been the case that you’ve disabled the browser cookies, hence the session was not maintained. Let me know if you’re still facing this issue.

The same thing happens.

Our link is this.

Is this happening only in ios safari or other browsers too?

It only happens on mobile ios safari.