Skip to content

Conversation

@brianjang
Copy link

if jwt token has an invalid token format then node-jwt / verify-stream.js returns the below error message:
SyntaxError: Unexpected token y in JSON at position 0
at Object.parse (native)
at Object.jwsDecode [as decode] (/home/brian-pc/workspace/incowiz_git/atomyair/server/http_server/node_modules/jws/lib/verify-stream.js:71:20)

this error will stop my node.js server

omsmith and others added 6 commits July 21, 2017 16:26
binary payloads would get mangled due to the unnecessary string
conversion, which should go the other way around

Fixes: auth0#50
sign: dont convert input buffers to utf8 strings
Just put some curly braces as JS doesn't have such syntax (yet).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants