FormidableLabs / FormidableLabs/react-native-app-auth

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

Abierto
#876 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Java
Estrellas
2.3k
Forks
473
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Empieza reproduciendo el flujo de inicio de sesión, cierre de sesión y segundo inicio de sesión de Android sin cerrar la app, usando la configuración appAuthRedirectScheme indicada y el proveedor FusionAuth. Compáralo con los flujos de primer inicio de sesión exitoso y posteriores al reinicio; se considera terminado cuando los inicios de sesión repetidos tienen éxito sin el error invalid-origin.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
android, react-native
Área
authentication, mobile
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
25/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.