FormidableLabs / FormidableLabs/react-native-app-auth
Failed to log in. Invalid origin uri android-app://{package_name}
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 473
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## 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 😄
コントリビューションガイド
調査の方向性
まず、報告されている appAuthRedirectScheme 設定と FusionAuth プロバイダーを使用して、アプリを終了せずに Android のログイン、ログアウト、および2回目のログインのフローを再現します。成功する初回ログインおよび再起動後のフローと比較します。完了の条件は、invalid-origin エラーなしでログインを繰り返し成功できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, react-native
- 領域
- authentication, mobile
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100