api-auth-nextauth

Pass

Audited by Gen Agent Trust Hub on Apr 7, 2026

Risk Level: SAFE
Full Analysis
  • [SAFE]: The skill establishes strong security foundations by mandating input validation via Zod and secure password storage using bcrypt for credentials-based authentication.
  • [SAFE]: It includes defensive implementation patterns for common attack vectors, specifically providing code for rate-limiting and validating redirect origins to prevent open-redirect vulnerabilities.
  • [SAFE]: The instructions promote the principle of least privilege by recommending that sensitive OAuth tokens remain server-side and only necessary data be exposed to the client.
  • [SAFE]: It enforces a defense-in-depth security model, instructing developers to perform session and role-based authorization checks at the individual route and server action level, complementing global middleware protection.
Audit Metadata
Risk Level
SAFE
Analyzed
Apr 7, 2026, 01:31 AM
Security Audit — agent-trust-hub — api-auth-nextauth