Skip to content

Commit ef0d70b

Browse files
committed
adds CHANGELOG.md file informing people of the /releases list. fixes #177
1 parent 0725272 commit ef0d70b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Change Log
2+
3+
This project adheres to [Semantic Versioning](http://semver.org/).
4+
Every release, along with the migration instructions (where necessary),
5+
is documented on the Github [Releases](https://github.com/dwyl/hapi-auth-jwt2/releases) page.
6+
7+
If anything is unclear in the project documentation, please
8+
raise an issue: https://github.com/dwyl/hapi-auth-jwt2/issues (_we are here to help!_)

lib/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ internals.implementation = function (server, options) {
2323
assert(options, 'options are required for jwt auth scheme'); // pre-auth checks
2424
assert(options.validateFunc || options.verifyFunc, 'validateFunc OR verifyFunc function is required!')
2525

26+
// allow custom error raising or default to Boom if no errorFunc is defined
2627
var raiseError = function(errorType, message, scheme, attributes) {
2728
if (options.errorFunc && internals.isFunction(options.errorFunc)) {
2829
var errorContext = {

0 commit comments

Comments
 (0)