FormidableLabs / FormidableLabs/react-native-app-auth
Distinguish between when the user declined the "Sign In" prompt or cancelled the flow in iOS
まだ誰も着手していません。
- 主要言語
- Java
- スター
- 2.3k
- フォーク
- 473
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
The issue https://github.com/FormidableLabs/react-native-app-auth/issues/565 suggests a way to differentiate between cancels from login failures.
But in iOS there are two types of cancellations in general:
- when the user presses "Cancel" on the prompt, that is by declining to sign in itself which is before the browser flow is even started
- when the user actually cancels the login flow or closes the browser
Is there anyway to distinguish between these two cases for iOS? For proper tracking purposes, I'd like to know when the user declines the prompt specifically.
Currently if you check the error as per suggested in here, both of these cases resolve to user cancellation which is based on this -3 error code.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず issue 565 のキャンセルに関する議論と、参照されている AppAuth-iOS Source/AppAuthCore/OIDError.h のエラーコードを確認します。2 つの iOS のキャンセル経路が React Native bridge を通じて異なるシグナルを公開しているかを判断します。完了条件は、呼び出し側が Sign In プロンプトの拒否と、ブラウザフローのキャンセルまたは終了を確実に区別できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- ios, react-native
- 領域
- authentication, mobile
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100