UNPKG

jaunty

Version:

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

16 lines (10 loc) 259 B
class AuthorizationError extends Error { constructor( type, message, additionalArgs ) { super( JSON.stringify( { type, message, ...additionalArgs } ) ); } } module.exports = AuthorizationError;