[Archive] Web3Auth iOS Safari Refresh Logout Issue

:classical_building: Archived Content from Web3Auth Community

This topic was originally posted by bjkim on 5/16/2023.
This content has been migrated from our previous community forum to preserve valuable discussions.


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.