jaunty
Version:
A simple, all-in-one, lightweight JWT authentication and authorization middleware for express.
15 lines (8 loc) • 322 B
JavaScript
const AuthorizationError = require( './authorization-error' );
class BadSchemeError extends AuthorizationError {
constructor( exactMessage ) {
super( 'BAD_SCHEME_ERROR', 'The provided scheme is invalid.', { exactMessage } );
this.name = 'BadSchemeError';
}
}
module.exports = BadSchemeError;