Skip to content

Commit

Permalink
Fixing wrong error message
Browse files Browse the repository at this point in the history
Obviously a copy/paste issue when implementing integrations for hapi
  • Loading branch information
adematte authored May 29, 2018
1 parent 195bac5 commit 122fc66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrations/hapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 122fc66

Please sign in to comment.