Skip to content

Commit

Permalink
fix: remove deprecated unused exported errors
Browse files Browse the repository at this point in the history
BREAKING CHANGE: exported errors `RestrictedGrantType` and
`RestrictedResponseType` are no longer available
  • Loading branch information
panva committed Sep 26, 2018
1 parent 73e07bd commit fc3f509
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/helpers/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,6 @@ const classes = [
['registration_not_supported', 'registration parameter provided but not supported'],
['request_not_supported', 'request parameter provided but not supported'],
['request_uri_not_supported', 'request_uri parameter provided but not supported'],
['restricted_grant_type', 'requested grant type is restricted to this client'], // TODO: Deprecated Error, delete in 5.x
['restricted_response_type', 'response_type not allowed for this client'], // TODO: Deprecated Error, delete in 5.x
['slow_down', 'you are polling too quickly and should back off at a reasonable rate'],
['temporarily_unavailable'],
['unauthorized_client'],
Expand Down
2 changes: 0 additions & 2 deletions test/provider/provider_class.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ describe('Provider', () => {
'RegistrationNotSupported',
'RequestNotSupported',
'RequestUriNotSupported',
'RestrictedGrantType',
'RestrictedResponseType',
'SlowDown',
'TemporarilyUnavailable',
'UnauthorizedClient',
Expand Down

0 comments on commit fc3f509

Please sign in to comment.