oauth2orize
oauth2orize copied to clipboard
Export `ForbiddenError`
trafficstars
How about export ForbiddenError? I need it inside my custom session storage
Can you explain why you need it? Would checking status == 403 be sufficient?
I've implemented my custom session storage and added check similar to https://github.com/jaredhanson/oauth2orize/blob/master/lib/txn/session.js#L27
To throw same error I need to re-use ForbiddenError class or implement my own.
As for me it makes sense to export ForbiddenError as it is done for TokenError, OAuth2Error and AuthorizationError.