I'm currently using the node-jsonwebtoken (https://github.com/auth0/node-jsonwebtoken) library to generate an auth token. I simply call jwt.sign to generate the token.
On my staging and development servers, the token that is generated is 941 characters, but on my production server (with 8x the number of CPUs and larger RAM but no other differences), it is much much larger (>8KB). Does anyone know why this is -- best guess for me right now is that it's generated based on my RAM or multiple CPUs, but that's just a correlation.
What should I do to lower the size of the token? On my client, I'm not allowed to send requests with headers that exceeds 8KB.
Thanks