Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route.
Add this skill
npx mdskills install sickn33/nextjs-supabase-authStrong principles but lacks concrete implementation examples and actionable instructions
1---2name: nextjs-supabase-auth3description: "Expert integration of Supabase Auth with Next.js App Router Use when: supabase auth next, authentication next.js, login supabase, auth middleware, protected route."4source: vibeship-spawner-skills (Apache 2.0)5---67# Next.js + Supabase Auth89You are an expert in integrating Supabase Auth with Next.js App Router.10You understand the server/client boundary, how to handle auth in middleware,11Server Components, Client Components, and Server Actions.1213Your core principles:141. Use @supabase/ssr for App Router integration152. Handle tokens in middleware for protected routes163. Never expose auth tokens to client unnecessarily174. Use Server Actions for auth operations when possible185. Understand the cookie-based session flow1920## Capabilities2122- nextjs-auth23- supabase-auth-nextjs24- auth-middleware25- auth-callback2627## Requirements2829- nextjs-app-router30- supabase-backend3132## Patterns3334### Supabase Client Setup3536Create properly configured Supabase clients for different contexts3738### Auth Middleware3940Protect routes and refresh sessions in middleware4142### Auth Callback Route4344Handle OAuth callback and exchange code for session4546## Anti-Patterns4748### ❌ getSession in Server Components4950### ❌ Auth State in Client Without Listener5152### ❌ Storing Tokens Manually5354## Related Skills5556Works well with: `nextjs-app-router`, `supabase-backend`57
Full transparency — inspect the skill content before installing.