[Archive] Login in release mode (react-native) fails in the first try

:classical_building: Archived Content from Web3Auth Community

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


Hello im working on a react-native project

the login flow works with no problem on debug mode but always fails in the first attempt on production then works

here is a snippet of the code

const web3auth = new Web3Auth(WebBrowser, { clientId: clientIdWeb3Auth, network: OPENLOGIN_NETWORK.TESTNET, }); const state = await web3auth.login({ loginProvider: LOGIN_PROVIDER.GOOGLE, redirectUrl: redirectUrl });



Originally posted by: amine-ba

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

Hey @amine-ba

Please update to the latest version of React Native SDK v3.1.0 and reach out to us if this error is still there.



Originally posted by: shahbaz17