Install
openclaw skills install jwtImplement secure JWT authentication with proper validation, token lifecycle, and key management.
openclaw skills install jwt| Topic | File |
|---|---|
| Algorithm selection | algorithms.md |
| Token lifecycle | lifecycle.md |
| Validation checklist | validation.md |
| Common attacks | attacks.md |
alg: none attack: reject tokens with algorithm "none"—some libraries accepted unsigned tokensexp (expiration): always set and verify—tokens without expiry live foreveriat (issued at): when token was created—useful for invalidation policiesnbf (not before): token not valid until this time—for scheduled accessiss (issuer): who created the token—verify to prevent cross-service token theftaud (audience): intended recipient—API should reject tokens for other audiencessub (subject): who the token represents—typically user IDexp is in future (with clock skew tolerance)iat is not unreasonably old (optional policy)iss matches expected issueraud includes your servicenbf if presentkid (key ID) claim to identify which key signed the tokenjsonwebtoken (Node), PyJWT (Python), java-jwt (Java), golang-jwt (Go)