Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
83
75%
Does it follow best practices?
Impact
100%
1.19xAverage score across 3 eval scenarios
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./tests/ext_conformance/artifacts/agents-wshobson/developer-essentials/skills/auth-implementation-patterns/SKILL.mdJWT token management
jsonwebtoken package
100%
100%
Access token expiry
0%
100%
Refresh token expiry
0%
100%
JWT payload fields
50%
100%
Separate JWT secrets
50%
100%
Bearer header extraction
100%
100%
TokenExpiredError handling
60%
100%
Refresh token hashed
100%
100%
Refresh returns access only
100%
100%
All-devices logout
100%
100%
401 on missing token
100%
100%
RBAC and permission-based authorization
Role enum values
100%
100%
Role hierarchy map
100%
100%
hasRole uses hierarchy
100%
100%
401 vs 403 distinction
100%
100%
Admin bypasses ownership
100%
100%
Permission enum format
100%
100%
rolePermissions mapping
100%
100%
requirePermission uses every()
100%
100%
Admin has all permissions
100%
100%
404 on missing resource
100%
100%
403 on non-owner
100%
100%
Session auth, password security, and rate limiting
connect-redis store
100%
100%
httpOnly cookie
100%
100%
sameSite strict
0%
100%
Conditional secure flag
100%
100%
Cookie maxAge 24h
0%
100%
resave and saveUninitialized
100%
100%
Logout destroys session
100%
100%
bcrypt saltRounds=12
100%
100%
Zod password min length
0%
100%
Zod character classes
100%
100%
Login rate limit config
44%
100%
Rate limit headers config
100%
100%
rate-limit-redis store
100%
100%
47823e3
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.