express-jwt-authz
express-jwt-authz copied to clipboard
Use AuthenticationError
How's this for error handling? I feel like giving an actual error object when the user wants to failWithError is better than a plain object. All the previous properties are still accessible.
Thanks for the PR @yliaho, can you please write a test for this?
Closing due to innactivity