From 122fc66478ab6256c6d402f3e774ceaf351fc16e Mon Sep 17 00:00:00 2001 From: Arnaud Dematte <5064637+adematte@users.noreply.github.com> Date: Tue, 29 May 2018 16:32:05 +0200 Subject: [PATCH] Fixing wrong error message Obviously a copy/paste issue when implementing integrations for hapi --- src/integrations/hapi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrations/hapi.js b/src/integrations/hapi.js index 03c2daae..a71d8c64 100644 --- a/src/integrations/hapi.js +++ b/src/integrations/hapi.js @@ -32,7 +32,7 @@ module.exports.hapiJwt2KeyAsync = (options) => { module.exports.hapiJwt2Key = (options) => { if (options === null || options === undefined) { - throw new ArgumentError('An options object must be provided when initializing expressJwtSecret'); + throw new ArgumentError('An options object must be provided when initializing hapiJwt2Key'); } const client = new JwksClient(options);