FormidableLabs / FormidableLabs/react-native-app-auth

Failed to log in. Invalid origin uri android-app://{package_name}

Offen
#876 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
2.3k
Forks
473
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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:

image

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 😄

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.