FormidableLabs / FormidableLabs/react-native-app-auth

Application restarts instead of returning from authenticate()

Open
#1,095 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
473
PR merge metrics
No merged PRs in 30d

Description

I can't make authenticate() work consistently in my application. After a fresh start, it calls authenticate(), the browser tab appears, user logs in, and returns to the application. But it's like a fresh start of the application again, it doesn't continue after the call to authenticate() as expected. Thus it goes to the browser login screen again.

Not sure if it's related but if I launch React Native DevTools, it disconnects a few seconds after the browser tab is shown.

I ran also the examples/demo app, and I've seen it behaving like this, although sometimes it works as expected (it doesn't disconnect if devtools open, and continues after the call to authenticate() upon returning from the browser tab.

Has anyone found this behaviour, even with the demo example?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.