[firebase_ui_auth] - exception is only throw one time when using startMFAVerification
维护者通常 7 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 35/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- dart, firebase, flutter
调研方向
从 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 天 12 小时
- 30 天内合并 PR
- 9
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
firebase/FirebaseUI-Flutter 的其他 Issue
-
auth blocked: customer response enhancement Keep Open
难度 3/5 1-2 天 新手友好度 35/100
firebase/FirebaseUI-Flutter#418 · 7 条评论 · 3 个 reaction ·
维护者通常 7 天内回复
-
auth Keep Open Needs Attention
难度 4/5 3-5 天 新手友好度 20/100
firebase/FirebaseUI-Flutter#351 · 3 条评论 · 1 个 reaction ·
维护者通常 7 天内回复
-
enhancement Keep Open storage
难度 4/5 3-5 天 新手友好度 38/100
firebase/FirebaseUI-Flutter#290 · 2 条评论 ·
维护者通常 7 天内回复
-
auth Keep Open platform: android
难度 4/5 3-5 天 新手友好度 25/100
firebase/FirebaseUI-Flutter#283 · 9 条评论 · 1 个 reaction ·
维护者通常 7 天内回复
-
auth bug Keep Open Needs Attention
难度 4/5 3-5 天 新手友好度 25/100
firebase/FirebaseUI-Flutter#261 · 6 条评论 · 3 个 reaction ·
维护者通常 7 天内回复
查看 firebase/FirebaseUI-Flutter 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 1 天内回复
-
area-clientside-dartpad
难度 2/5 1-3 小时 新手友好度 62/100
dart-lang/dart-pad#3938 · 1 条评论 ·
维护者通常 1 天内回复
-
package:dart_mcp_server
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
general
难度 2/5 1-3 小时 新手友好度 74/100
ScottKirvan/QuKi-Notes#444 ·
维护者通常 22 天内回复