auth-systems

Community

Secure Next.js apps with robust auth.

Authorollieb89
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides comprehensive solutions for implementing secure authentication and authorization in Next.js App Router applications, covering both managed (Clerk) and self-hosted (Better Auth) options.

Core Features & Use Cases

  • Authentication Flows: Implement sign-up, sign-in, and session management.
  • Route Protection: Secure routes using middleware for both Clerk and Better Auth.
  • OAuth Integration: Easily add social login providers like GitHub and Google.
  • Server-Side Access: Access user session data securely in Server Components, Actions, and API Routes.
  • Webhook Handling: Synchronize user data with Clerk webhooks.
  • Security Best Practices: Addresses potential vulnerabilities like App Router cache bypass.
  • Use Case: Secure a new SaaS application by implementing email/password sign-up, Google OAuth, and protecting all routes under /dashboard with middleware.

Quick Start

Install Clerk and add basic authentication to your Next.js app by wrapping your layout with ClerkProvider and setting up middleware to protect routes.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: auth-systems
Download link: https://github.com/ollieb89/viflo/archive/main.zip#auth-systems

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.