Skip to content

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

@markearthware

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

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