auth0 / node-jsonwebtoken

JsonWebToken implementation for node.js http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html
MIT License
17.73k stars 1.23k forks source link

JWT payload size > 475 bytes #956

Open impleotv opened 10 months ago

impleotv commented 10 months ago

Hi,

I'm trying to produce the token by passing the JSON string. It works correctly if the payload (the length of the string) is less than 476 bytes. A string with a length of 475 bytes works, but a string of 476 bytes produces a corrupted token. Is there any limitation on the size? Am I doing something wrong?

 jwt.sign(info, privateKey, { algorithm: 'RS256' }, (err, token) => {
...

Thanks,

Alex