@@ -10,36 +10,18 @@ type Response struct {
1010 StatusCode int `json:"-"`
1111}
1212
13+ // https://tools.ietf.org/html/rfc6749#section-5.2
1314var (
14- // ErrInvalidRequest invalid request
15- ErrInvalidRequest = errors .New ("invalid_request" )
16-
17- // ErrUnauthorizedClient unauthorized client
18- ErrUnauthorizedClient = errors .New ("unauthorized_client" )
19-
20- // ErrAccessDenied access denied
21- ErrAccessDenied = errors .New ("access_denied" )
22-
23- // ErrUnsupportedResponseType unsupported response type
15+ ErrInvalidRequest = errors .New ("invalid_request" )
16+ ErrUnauthorizedClient = errors .New ("unauthorized_client" )
17+ ErrAccessDenied = errors .New ("access_denied" )
2418 ErrUnsupportedResponseType = errors .New ("unsupported_response_type" )
25-
26- // ErrInvalidScope invalid scope
27- ErrInvalidScope = errors .New ("invalid_scope" )
28-
29- // ErrServerError server error
30- ErrServerError = errors .New ("server_error" )
31-
32- // ErrTemporarilyUnavailable temporarily unavailable
33- ErrTemporarilyUnavailable = errors .New ("temporarily_unavailable" )
34-
35- // ErrInvalidClient invalid client
36- ErrInvalidClient = errors .New ("invalid_client" )
37-
38- // ErrInvalidGrant invalid grant
39- ErrInvalidGrant = errors .New ("invalid_grant" )
40-
41- // ErrUnsupportedGrantType unsupported grant type
42- ErrUnsupportedGrantType = errors .New ("unsupported_grant_type" )
19+ ErrInvalidScope = errors .New ("invalid_scope" )
20+ ErrServerError = errors .New ("server_error" )
21+ ErrTemporarilyUnavailable = errors .New ("temporarily_unavailable" )
22+ ErrInvalidClient = errors .New ("invalid_client" )
23+ ErrInvalidGrant = errors .New ("invalid_grant" )
24+ ErrUnsupportedGrantType = errors .New ("unsupported_grant_type" )
4325)
4426
4527// Descriptions error description
0 commit comments