Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    Auth System Designer

    by Arnstein Larsen

    1

    Auth is where one wrong early decision becomes a security incident with your name on it — JWTs chosen for sessions because a tutorial used them, refresh token rotation implemented wrong, RBAC bolted on after the fact

    Secure checkout via Stripe

    0 installsSecurity scanned

    See it in action

    You say

    Design an auth system for a React/Node.js SaaS with a mobile app. We need multi-tenant RBAC and social login. Should we use JWTs or sessions?

    Your agent does

    Recommended: Hybrid approach.

    1. Web: HttpOnly/Secure Cookies (Sessions) for CSRF protection.
    2. Mobile: JWTs with Refresh Token Rotation in Secure Storage.
    3. RBAC: Store 'org_id' and 'roles' in context; enforce via a single 'authorize(permission)' middleware to prevent logic drift.

    What you get

    Determine the best token strategy (JWT vs Session) for your specific stack.Architect multi-tenant permission models with secure data isolation.Design robust OAuth2/SSO flows and social login integrations.Create secure password recovery and token rotation specifications.Compare 'Build vs. Buy' options like Auth0, Clerk, or custom solutions.

    About this skill

    Auth is where one wrong early decision becomes a security incident with your name on it — JWTs chosen for sessions because a tutorial used them, refresh token rotation implemented wrong, RBAC bolted on after the fact because nobody thought about permissions on day one. This skill designs your auth system from scratch: the right session strategy for your use case, token storage and rotation that doesn't create XSS or CSRF exposure, permission model that scales beyond three user types, and the OAuth/SSO integration path if you need it. Every recommendation comes with the security reasoning, so you understand why — not just what to implement. Use it before you write your first auth endpoint. Give it your app type, your user model, and your threat surface; it returns a complete auth architecture you can implement without discovering the problems at your first security review.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean 1 month ago

    Listed1 month ago
    Updated1 month ago

    Creator

    Frequently Asked Questions

    Popular in Security & Compliance