🐛 [firebase_auth] MFA enabled user calls reauthenticateWithCredential
method throws FirebaseAuthException.
#9402
Labels
platform: android
Issues / PRs which are specifically for Android.
plugin: auth
resolution: fixed
A fix has been merged or is pending merge from a PR.
type: bug
Something isn't working
Bug report
Describe the bug
MFA enabled user calls
reauthenticateWithCredential
method throws FirebaseAuthException, error code issecond-factor-required
.Steps to reproduce
Steps to reproduce the behavior:
enroll
methodreauthenticateWithCredential
method because of required recent authentication before, But throws FirebaseException.Expected behavior
It should throw
FirebaseAuthMultiFactorException
.We need
MultiFactorResolver
for verifiing Phone Number, butFirebaseException
does not have it.And also, If you try to sign in(not reauthentication) as MFA user by calling
enroll
method in MultiFactor class, then throwsFirebaseAuthMultiFactorException
.Therefore,
reauthentication
should be same behavior toenroll
.Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: