reviewing-security-architecture

Installation
SKILL.md

Authentication Architecture

Token Handling

Review these aspects of token-based authentication:

Aspect Secure Pattern Anti-Pattern
Issuance Short-lived tokens with refresh mechanism Long-lived tokens that never expire
Validation Validate signature, issuer, audience, and expiry on every request Validate only the signature, or skip validation for "internal" calls
Storage (server) Stateless JWT or server-side session store Token stored in querystring or URL
Storage (client) HttpOnly Secure cookies or secure platform storage localStorage, sessionStorage, or cookies without HttpOnly/Secure flags
Refresh Refresh token rotation (old refresh token invalidated on use) Reusable refresh tokens with no rotation
Revocation Token blocklist or short expiry + refresh rotation No revocation mechanism for compromised tokens

Session Management

  • Server-side sessions should have absolute timeouts (maximum session duration) and idle timeouts
  • Session identifiers must be cryptographically random and sufficiently long (128+ bits of entropy)
Related skills

More from bitwarden/ai-plugins

Installs
38
GitHub Stars
100
First Seen
Mar 19, 2026