File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
FirebaseSwiftUI/FirebaseAuthSwiftUI/Sources/Services Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -232,8 +232,6 @@ public final class AuthService {
232232 }
233233 } catch let error as NSError {
234234 authenticationState = . unauthenticated
235- updateError ( message: string. localizedErrorMessage ( for: error) )
236-
237235 // Check if this is an MFA required error
238236 if error. code == AuthErrorCode . secondFactorRequired. rawValue {
239237 if let resolver = error
@@ -242,6 +240,9 @@ public final class AuthService {
242240 pendingMFACredential = credentials
243241 return handleMFARequiredError ( resolver: resolver)
244242 }
243+ } else {
244+ // Don't want error modal on MFA error so we only update here
245+ updateError ( message: string. localizedErrorMessage ( for: error) )
245246 }
246247
247248 throw error
You can’t perform that action at this time.
0 commit comments