Skip to content

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

@ceichinger

Description

@ceichinger

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions