JSON token size
I am currently using the node-jsonwebtoken library ( https://github.com/auth0/node-jsonwebtoken ) to generate an authentication token. I just call jwt.sign to generate the token.
On my dev / dev servers, the token that is generated is 941 characters, but on my production server (with 8x CPUs and more RAM, but no other differences) it is much larger (> 8KB). Does anyone know why this is - the best guess I am currently in is that it is based on my RAM or multiple processors, but this is just a correlation.
What to do to reduce the size of the token? On my client, I am not allowed to send requests with headers greater than 8KB.
thank
+3
source to share
No one has answered this question yet
Check out similar questions: