Skip to content

Cannot read property '2' of null when algorithm 'RS256' supplied #2

Description

@markearthware

The following error is thrown when i call this line of code
var token = jwt.encode(payload, secret, 'RS256');

Cannot read property '2' of null
Stack trace
module.exports fixProc.js:13
parseKeys index.js:18
sign sign.js:12
Sign.signMethod [as sign]
browser.js: 45

I can get a token back when I use the other algorithms.

Cheers,
Mark

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions