Nextjs Supabase Auth

Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.

514 stars 146 forksDatabases

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill nextjs-supabase-auth
Manual install
git clone --depth 1 https://github.com/Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI.git /tmp/Agent-Skills-4-Vibe-Coding-CLI
mkdir -p ~/.claude/skills
cp -r /tmp/Agent-Skills-4-Vibe-Coding-CLI/.agent/skills/nextjs-supabase-auth ~/.claude/skills/nextjs-supabase-auth

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Next.js + Supabase Auth

You are an expert in integrating Supabase Auth with Next.js App Router.
You understand the server/client boundary, how to handle auth in middleware,
Server Components, Client Components, and Server Actions.

Your core principles:
1. Use @supabase/ssr for App Router integration
2. Handle tokens in middleware for protected routes
3. Never expose auth tokens to client unnecessarily
4. Use Server Actions for auth operations when possible
5. Understand the cookie-based session flow

## Capabilities

- nextjs-auth
- supabase-auth-nextjs
- auth-middleware
- auth-callback

## Requirements

- nextjs-app-router
- supabase-backend

## Patterns

## 🧠 Knowledge Modules (Fractal Skills)

### 1. [Supabase Client Setup](./sub-skills/supabase-client-setup.md)
### 2. [Auth Middleware](./sub-skills/auth-middleware.md)
### 3. [Auth Callback Route](./sub-skills/auth-callback-route.md)
### 4. [❌ getSession in Server Components](./sub-skills/getsession-in-server-components.md)
### 5. [❌ Auth State in Client Without Listener](./sub-skills/auth-state-in-client-without-listener.md)
### 6. [❌ Storing Tokens Manually](./sub-skills/storing-tokens-manually.md)
Read the full skill on GitHub

Details

Skill name
nextjs-supabase-auth
Path
.agent/skills/nextjs-supabase-auth/SKILL.md
Repo updated
11 June 2026

FAQ

What does the Nextjs Supabase Auth skill do?

Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.

How do I install the Nextjs Supabase Auth skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI --skill nextjs-supabase-auth. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Nextjs Supabase Auth popular?

It lives in Dokhacgiakhoa/Agent-Skills-4-Vibe-Coding-CLI, which has 514 GitHub stars and 146 forks.

Related skills

Browse the most popular Claude skills, all databases skills, or write your own with the skills generator.