Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix for invaild json format #73

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

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.

2 participants