diff --git a/lib/index.js b/lib/index.js index 3fae2b8..1c2c9ce 100644 --- a/lib/index.js +++ b/lib/index.js @@ -27,7 +27,7 @@ internals.implementation = function (server, options) { return { authenticate: function (request, reply) { var token = extract(request, options); - + if (!token) { return reply(Boom.unauthorized(null, 'Token')); } diff --git a/package.json b/package.json index f4aecbd..9c2e9e8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hapi-auth-jwt2", - "version": "5.1.1", + "version": "5.1.2", "description": "Hapi.js Authentication Plugin/Scheme using JSON Web Tokens (JWT)", "main": "lib/index.js", "repository": { diff --git a/test/try-test.js b/test/try-and-optional-auth-mode.test.js similarity index 100% rename from test/try-test.js rename to test/try-and-optional-auth-mode.test.js