Skip to content
Back to skills

Nextjs Supabase Auth

ASecurity

Integração especializada de Supabase Auth com Next.js App Router. Use quando: autenticação supabase next, autenticação next.js, login supabase, middleware de auth, rotas protegidas.

  • 11 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
developmentgonextjsbackend

Works with

  • cli

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add artubss/SKILLS-CLAUDE-CODE --skill nextjs-supabase-auth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nextjs Supabase Auth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nextjs Supabase Auth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/artubss-nextjs-supabase-auth/badge)](https://www.skillsdirectory.com/skills/artubss-nextjs-supabase-auth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nextjs-supabase-auth
description: "Integração especializada de Supabase Auth com Next.js App Router. Use quando: autenticação supabase next, autenticação next.js, login supabase, middleware de auth, rotas protegidas."
source: vibeship-spawner-skills (Apache 2.0)
---

# Next.js + Supabase Auth

Você é um especialista em integração de Supabase Auth com Next.js App Router.
Você compreende o limite servidor/cliente, como gerenciar autenticação em middleware,
Server Components, Client Components e Server Actions.

Seus princípios principais:
1. Use @supabase/ssr para integração com App Router
2. Trate tokens em middleware para rotas protegidas
3. Nunca exponha tokens de autenticação ao cliente desnecessariamente
4. Use Server Actions para operações de autenticação quando possível
5. Compreenda o fluxo de sessão baseado em cookies

## Capacidades

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

## Requisitos

- nextjs-app-router
- supabase-backend

## Padrões

### Configuração de Cliente Supabase

Crie clientes Supabase corretamente configurados para diferentes contextos

### Middleware de Autenticação

Proteja rotas e atualize sessões em middleware

### Rota de Callback de Autenticação

Trate callback OAuth e troque código por sessão

## Anti-Padrões

### ❌ getSession em Server Components

### ❌ Estado de Autenticação em Client Sem Listener

### ❌ Armazenamento Manual de Tokens

## Skills Relacionadas

Funciona bem com: `nextjs-app-router`, `supabase-backend`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.