We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad1f667 commit e17ee4dCopy full SHA for e17ee4d
1 file changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services/AuthService.swift
@@ -235,8 +235,6 @@ public final class AuthService {
235
}
236
} catch let error as NSError {
237
authenticationState = .unauthenticated
238
- updateError(message: string.localizedErrorMessage(for: error))
239
-
240
// Check if this is an MFA required error
241
if error.code == AuthErrorCode.secondFactorRequired.rawValue {
242
if let resolver = error
@@ -245,6 +243,9 @@ public final class AuthService {
245
243
pendingMFACredential = credentials
246
244
return handleMFARequiredError(resolver: resolver)
247
+ } else {
+ // Don't want error modal on MFA error so we only update here
248
+ updateError(message: string.localizedErrorMessage(for: error))
249
250
251
throw error
0 commit comments