Web3Auth/web3auth-react-native-sdk

Login and Logout working in DEV but not for Release build configuration (rn-bare)

Opened this issue · 1 comments

Hello Team,

the whole login & logout process (bare implementation, not expo) is working fine on iOS in a DEV build. But as soon as I run npx react-native run-ios --configuration Release the login does not open the browser (both for Device and Simulator):

await web3auth.login({
loginProvider: LOGIN_PROVIDER.GOOGLE,
redirectUrl: 'myscheme://openlogin',
})

Also logout seems to be broken in production build with no feedback.
Init seems to be working: In case I do not call init the corresponding error message appears.

Just for testing I tried to open WebBrowser directly and the browser is shown:

import * as WebBrowser from '@toruslabs/react-native-web-browser';
WebBrowser.openAuthSessionAsync(
'https://google.com',
'securasign://openlogin',
);

Used packages:

  • "@toruslabs/react-native-web-browser": "^1.1.0"
  • "@web3auth/react-native-sdk": "^5.1.0"
  • "react-native": "0.72.6"
  • "react-native-encrypted-storage": "^4.0.3"

Hey @ceichinger

Thanks for your issue. Ideally the best place for such issues and questions is Our Community Portal, causing the delay in reply here.

Additionally, I was trying to reproduce the error you mentioned here, however can't seem to do so. We have our quick starts where we have also published a build with the latest version of the SDK and the login, logout and everything seem to work totally fine. You maybe check it out as well: https://web3auth.io/docs/quick-start?product=PNP&sdk=PNP_REACT_NATIVE&framework=IOS&stepIndex=0

Please try reproducing this on our quick start app locally if you can. There can be multiple additional reason behind it, from wrong polyfills to incompatible versioning issues. Please make sure to check the SDK reference and polyfill troubleshooting guide as well.