From 35a1b95ba6366e9d4472d36c6fd0bc8d6447157c Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Mon, 12 Oct 2015 12:00:16 -0700 Subject: [PATCH] support try mode --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index ad5834c..79c7f44 100644 --- a/lib/index.js +++ b/lib/index.js @@ -28,7 +28,7 @@ internals.implementation = function (server, options) { authenticate: function (request, reply) { var token = extract(request, options); - if (!token && request.auth.mode === 'optional') { + if (!token && request.auth.mode !== 'required') { return reply.continue({ credentials: {} }); }