-
Notifications
You must be signed in to change notification settings - Fork 127
Closed
Labels
Description
Currently, users of this package cannot pass in verify options for the jsonwebtokens module as shown here:
https://www.npmjs.com/package/jsonwebtoken#jwt-verify-token-secretorpublickey-options-callback
I have resolved this issue but am unfamiliar with source control and how to make a pull request.
The modified index.js for can be found here: http://pastebin.com/kibMGb11
Users now need only to pass in a verifyOptions object in the options object for the module.
Example:
server.auth.strategy('jwt', 'jwt', true,
{
key: secret,
validateFunc: validate,
verifyOptions: {
ignoreExpiration: true
}
}
);
I also exported the JWT.sign method so now users of the package do not need to have specific requires for it in their project.