defaultOnAuthError function
Default error handler that starts MFA flow
if FirebaseAuthMultiFactorException
is thrown.
Implementation
void defaultOnAuthError(AuthProvider provider, Object error) {
if (error is! fba.FirebaseAuthException) {
throw error;
}
if (error is fba.FirebaseAuthMultiFactorException) {
provider.authListener.onMFARequired(error.resolver);
return;
}
throw error;
}