JWT Security Best Practices
A JWT payload is only Base64URL-encodedโanyone holding the token can decode its JSON claims locally. Never place passwords, Social Security numbers, or secret API keys inside a JWT payload, and always verify cryptographic signatures server-side using a pinned algorithm (never trust alg: none).