FormidableLabs / FormidableLabs/react-native-app-auth
Failed to log in. Invalid origin uri android-app://{package_name}
- Langage dominant
- Java
- Étoiles
- 2.3k
- Forks
- 473
- Métriques de merge des PR
- Aucune PR mergée en 30 j
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 😄
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le flux de connexion, de déconnexion et de deuxième connexion sur Android sans fermer l’application, en utilisant la configuration appAuthRedirectScheme signalée et le fournisseur FusionAuth. Comparez-le avec les flux de première connexion réussie et post-redémarrage ; c’est terminé lorsque les connexions répétées réussissent sans l’erreur invalid-origin.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- android, react-native
- Domaine
- authentication, mobile
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100