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