Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Commit

Permalink
Don't treat a 400 Bad Request to a refresh request as a logout. (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
zamzterz authored Jun 4, 2020
1 parent 4c883d9 commit 6223cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Manager/TaskManager/TaskManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class TaskManager {
if let clientError = error as? ClientError {
switch clientError {
case let .networkingError(internaleError):
let logoutCodes = [400, 401, 403]
let logoutCodes = [401, 403]
if case let NetworkingError.unexpectedStatus(status, _) = internaleError, logoutCodes.contains(status) {
strongSelf.user?.logout()
}
Expand Down

0 comments on commit 6223cee

Please sign in to comment.