UNPKG

jaunty

Version:

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

14 lines (7 loc) 248 B
const AuthorizationError = require( './authorization-error' ); class BadTokenError extends AuthorizationError { constructor() { super( 'BAD_TOKEN_ERROR', 'The provided token is invalid.' ); } } module.exports = BadTokenError;