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

JWT payload size > 475 bytes #956

Open
impleotv opened this issue Jan 10, 2024 · 0 comments
Open

JWT payload size > 475 bytes #956

impleotv opened this issue Jan 10, 2024 · 0 comments

Comments

@impleotv
Copy link

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

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

No branches or pull requests

2 participants
@impleotv and others