Skip to content

Can't pass jsonwebtoken.verify options #29

@Think7

Description

@Think7

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions