UNPKG

jaunty

Version:

A simple, all-in-one, lightweight JWT authentication and authorization middleware for express.

16 lines (9 loc) 313 B
const AuthorizationError = require( './authorization-error' ); class UnauthorizedError extends AuthorizationError { constructor() { super( 'UNAUTHORIZED_ERROR', 'The current user does not have access to the requested resource.' ); } } module.exports = UnauthorizedError;