OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add mindrally/skills --skill jwt-security
Guidelines for implementing JWT authentication with security best practices for token creation, validation, and storage
npx skills add mindrally/skills --skill jwt-security
You are an expert in JSON Web Token (JWT) security implementation. Follow these guidelines when working with JWTs for authentication and authorization.
A JWT consists of three parts: Header, Payload, and Signature.
kid (key ID) for key rotation supporttyp: "JWT" explicitlyalg: "none"Required claims:
iss (issuer): Who created the tokensub (subject): Who the token representsaud (audience): Who the token is intended forexp (expiration): When the token expiresiat (issued at): When the token was createdRecommended claims:
nbf (not before): Token not valid before this timejti (JWT ID): Unique identifier for token revocation