Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,6 @@ public final class AuthService {
}
} catch let error as NSError {
authenticationState = .unauthenticated
updateError(message: string.localizedErrorMessage(for: error))

// Check if this is an MFA required error
if error.code == AuthErrorCode.secondFactorRequired.rawValue {
if let resolver = error
Expand All @@ -242,6 +240,9 @@ public final class AuthService {
pendingMFACredential = credentials
return handleMFARequiredError(resolver: resolver)
}
} else {
// Don't want error modal on MFA error so we only update here
updateError(message: string.localizedErrorMessage(for: error))
}

throw error
Expand Down
Loading