Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ceichinger opened this issue Nov 20, 2023 · 1 comment

Comments

@ceichinger
Copy link

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"
@ceichinger ceichinger changed the title Login and Logout working in DEV but for Release build configuration (rn-bare) Login and Logout working in DEV but not for Release build configuration (rn-bare) Nov 24, 2023
@yashovardhan
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants