[firebase_ui_auth] - exception is only throw one time when using startMFAVerification
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- dart, firebase, flutter
- Ambito
- authentication, web-dev
Direzione di ricerca
Inizia dall’implementazione di startMFAVerification in firebase_ui_auth e confronta la gestione della chiamata mostrata a provider.sendVerificationCode dopo un codice non valido. Riproduci il flusso con AuthStateChangeAction e verifica che gli errori di convalida ripetuti raggiungano il catch FirebaseException circostante, non solo il primo tentativo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Dart
- Stelle
- 152
- Fork
- 141
- Merge medio
- 2g 12h
- PR unite (30g)
- 9
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di firebase/FirebaseUI-Flutter
-
auth blocked: customer response enhancement Keep Open
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
firebase/FirebaseUI-Flutter#418 · 7 commenti · 3 reazioni ·
-
auth Keep Open Needs Attention
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
firebase/FirebaseUI-Flutter#351 · 3 commenti · 1 reazione ·
-
enhancement Keep Open storage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
firebase/FirebaseUI-Flutter#290 · 2 commenti ·
-
auth Keep Open platform: android
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
firebase/FirebaseUI-Flutter#283 · 9 commenti · 1 reazione ·
-
auth bug Keep Open Needs Attention
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
firebase/FirebaseUI-Flutter#261 · 6 commenti · 3 reazioni ·
Tutte le issue di firebase/FirebaseUI-Flutter
Issue simili
-
area-clientside-dartpad
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
-
general
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
ScottKirvan/QuKi-Notes#444 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
from.page-issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100