Skip to content
SkilVault
Sign inGet started

app-router-cookie-auth-integration

Web Frontend
Signed by SkilVault

Wires Supabase authentication into a Next.js App Router application with separate browser and server cookie clients, middleware session refresh, OAuth code-exchange callbacks, and verified server-side identity in Server Components and Server Actions. Use when the user says "supabase auth next", "login with supabase", "protect my routes with auth middleware", "add an auth callback route", or "sessions keep expiring in Next.js". Not for Pages Router integration, manual token storage schemes, or non-auth backend setup.

Version
v1.0.0
Size
7 KB
Updated
2026-10-02
$ skilvault read --manual app-router-cookie-auth-integration

Your client verifies the signature before reading. This explicit manual read is available on every plan. Free automatically loads five chosen skills; paid plans automatically load relevant skills across the library.