Skip to content

Commit b231246

Browse files
author
Catalina Turlea
committed
Added description for the clientError
1 parent abb6229 commit b231246

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/Base/OAuth2Error.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ public enum OAuth2Error: Error, CustomStringConvertible, Equatable {
275275
return message ?? "The requested scope is invalid, unknown, or malformed."
276276
case .serverError:
277277
return "The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
278+
case .clientError(let statusCode):
279+
return "The authorization server returned \(statusCode)"
278280
case .temporarilyUnavailable(let message):
279281
return message ?? "The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server."
280282
case .invalidGrant(let message):

0 commit comments

Comments
 (0)