3 ms·
You mean the public key? The private key is what's used to sign tokens, the public key is used to verify the signature and can be freely shared. Or maybe you me
by Salgat 4y ago
You mean the public key? The private key is what's used to sign tokens, the public key is used to verify the signature and can be freely shared. Or maybe you mean they used a symmetric key and shared that?
- ehutch79 4y agoI'm pretty sure he meant they were putting the private key in the jwt. People do some dumb stuff. And the dunning kruger effect is all too real.
- xtracto 4y agoPrivate key to SIGN the content.
- P5fRxh5kUvp2th 4y agowhat am I missing? a JWT signature is the header and payload encrypted and attached. You would do that encryption via a private key, said public key would be used to verify it was encrypted by the private key. What does "to SIGN" mean in this context?