Skip to content

Commit

Permalink
fix(GiniHealthAPILibrary): Fix to throw unauthorized error when sta…
Browse files Browse the repository at this point in the history
…tus code is 400 and body response error is `invalid_grant`

PP-291
  • Loading branch information
ValentinaIancu-Gini committed Feb 19, 2024
1 parent e96d941 commit 20e847d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private extension SessionManager {
completion(.failure(.badRequest(response: response, data: data)))
return
}
completion(.failure(.badRequest(response: response, data: data)))
completion(.failure(.unauthorized(response: response, data: data)))
case 401:
completion(.failure(.unauthorized(response: response, data: data)))
case 404:
Expand Down

0 comments on commit 20e847d

Please sign in to comment.