auth-implementation-patterns
Pass
Audited by Gen Agent Trust Hub on Mar 24, 2026
Risk Level: SAFE
Full Analysis
- [SAFE]: The skill provides implementation guides and code snippets for authentication (JWT, Sessions, OAuth2) and authorization (RBAC, Permissions). All patterns utilize well-known, industry-standard libraries such as
jsonwebtoken,bcrypt,passport, andexpress-session. - [SAFE]: Security best practices are explicitly demonstrated and encouraged, including password hashing with
bcrypt, input validation usingzod, and implementation of rate limiting usingexpress-rate-limit. - [SAFE]: The code correctly handles sensitive data by recommending the use of environment variables (e.g.,
process.env.JWT_SECRET) rather than hardcoding credentials. - [SAFE]: Session management patterns include security flags such as
httpOnly,secure, andsameSiteto mitigate common web vulnerabilities like XSS and CSRF.
Audit Metadata