FormidableLabs / FormidableLabs/react-native-app-auth
Failed to log in. Invalid origin uri android-app://{package_name}
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 473
- PR merge metrics
- No merged PRs in 30d
Description
## Issue
Hi! Loving the library so far. I'm integrating with fushionauth with a react-native app, the problem only arises on android, iOS works nicely as far as I can tell. We can login into the app, do all our stuff inside and then logout, the problem appears when trying to login again without closing the app, when we try the following exception is displayed in an alert that we programmed:
What's really strange is that it let's us login the first time, and we can log out just fine. We can even close the app completely and login back again without issues, the problem only emerges once we logout and try to login again without closing the application.
We double checked the library guide on how to setup the android app and we have correctly setup the `appAuthRedirectShceme` inside the `android/app/build.gradle`:
```js
manifestPlaceholders = [
appAuthRedirectScheme: '{custom redirect scheme}' // From the redirectUrl in settings.js
]
```
Any help would be greatly appreciated!
---
## Environment
* **Your Identity Provider**: `fushionauth`
* **Platform that you're experiencing the issue on**: `Android`
* **Are you using Expo?** No 😄
Contributor guide
Assessment
This issue has not been assessed yet.