You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"Failed to decode given data as a UTF-8 string"
255
261
256
-
case.unauthorizedClient:
257
-
return"Unauthorized"
262
+
case.unauthorizedClient(let message):
263
+
returnmessage ??"Unauthorized"
258
264
case.forbidden:
259
265
return"Forbidden"
260
266
case.wrongUsernamePassword:
261
267
return"The username or password is incorrect"
262
-
case.accessDenied:
263
-
return"The resource owner or authorization server denied the request."
264
-
case.unsupportedResponseType:
265
-
return"The authorization server does not support obtaining an access token using this method."
266
-
case.invalidScope:
267
-
return"The requested scope is invalid, unknown, or malformed."
268
+
case.accessDenied(let message):
269
+
returnmessage ??"The resource owner or authorization server denied the request."
270
+
case.unsupportedResponseType(let message):
271
+
returnmessage ??"The authorization server does not support obtaining an access token using this method."
272
+
case.invalidScope(let message):
273
+
returnmessage ??"The requested scope is invalid, unknown, or malformed."
268
274
case.serverError:
269
275
return"The authorization server encountered an unexpected condition that prevented it from fulfilling the request."
270
-
case.temporarilyUnavailable:
271
-
return"The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server."
276
+
case.temporarilyUnavailable(let message):
277
+
return message ??"The authorization server is currently unable to handle the request due to a temporary overloading or maintenance of the server."
278
+
case.invalidGrant(let message):
279
+
return message ??"The authorization grant or refresh token is invalid, expired, revoked, does not match the redirection URI used in the authorization request, or was issued to another client."
0 commit comments