[firebase_ui_auth] - exception is only throw one time when using startMFAVerification
メンテナーはふだん 7 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
調査の方向性
firebase_ui_auth の startMFAVerification の実装から始め、無効なコードの後に示されている provider.sendVerificationCode 呼び出しの処理を比較してください。AuthStateChangeAction を使ってフローを再現し、検証エラーが繰り返し発生した場合に、最初の試行だけでなく、周囲の FirebaseException catch に到達することを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues and found no duplicates.
What plugin is this bug for?
Firebase UI Auth
What platform(s) does this bug affect?
Web
List of dependencies used.
flutter pub deps -s list
Steps to reproduce
if you have this in your actions:
AuthStateChangeAction<MFARequired>((context, state) async {
try {
await startMFAVerification(
resolver: state.resolver,
context: context,
);
} on FirebaseException catch (e) {
if (!context.mounted) return;
ScaffoldMessenger.of(context).hideCurrentSnackBar();
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: ErrorText(exception: e),
),
);
}
}),
The Exception only only catch the first time as you can see it:
If you press a second time on the validation button
The Exception is not raised to the previous catch statement....but print to the console
Expected Behavior
The the error as many time needed.
One you have an error, In was expecting form this helper method to restart:
provider.sendVerificationCode(
hint: hint as fba.PhoneMultiFactorInfo,
multiFactorSession: session,
action: AuthAction.none,
);
Otherwise once you have an error, you need to go to the previous page and type correctly the pin.
I'm expecting user to sometime do mistakes when entering the code, so this can be very annoying from an end user perspective.
Actual Behavior
Only trigger one time
Additional Information
No response
- 主要言語
- Dart
- スター
- 152
- フォーク
- 141
- 平均マージ
- 2日 10時間
- マージ済み PR(30日)
- 12
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
firebase/FirebaseUI-Flutter のほかの issue
-
auth blocked: customer response enhancement Keep Open
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
firebase/FirebaseUI-Flutter#418 · コメント 7 件 · リアクション 3 件 ·
メンテナーはふだん 7 日以内に返信
-
auth Keep Open Needs Attention
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
firebase/FirebaseUI-Flutter#351 · コメント 3 件 · リアクション 1 件 ·
メンテナーはふだん 7 日以内に返信
-
enhancement Keep Open storage
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
firebase/FirebaseUI-Flutter#290 · コメント 2 件 ·
メンテナーはふだん 7 日以内に返信
-
auth bug Keep Open Needs Attention
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
firebase/FirebaseUI-Flutter#261 · コメント 6 件 · リアクション 3 件 ·
メンテナーはふだん 7 日以内に返信
-
auth blocked: customer response bug Keep Open
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
firebase/FirebaseUI-Flutter#253 · コメント 21 件 · リアクション 2 件 ·
メンテナーはふだん 7 日以内に返信
firebase/FirebaseUI-Flutter の issue をすべて見る
似ている issue
-
area-clientside-dartpad
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
firebase/flutterfire#18726 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
ai-driven-qa bug claude
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
linagora/tmail-flutter#4878 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信