How secure are JSON Web Tokens? I understand the basics of JWT, but I'm not an encryption expert.
- What is the most secure algorithm to use when creating the signature?
- Should you do anything else on the server side besides verifying the signature? IE: tracking tokens, rotating keys, etc.
Without knowing much about encryption it seems risky to simply trust a JWT based on signature alone. How hard would it be to actually spoof a JWT with the most secure encryption algorithm?