Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Integrates Supabase Auth into Next.js App Router apps via proxy.ts route protection, callbacks, and server/client clients.
48% 100%+52 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 11 of 23 without it.
This test ran on v1. v3 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Use this skill for authentication work in Next.js App Router with Supabase Auth.
Use this skill when:
proxy.tsDo not use this skill when:
supabase-postgres-best-practices)docs/ai/skills/supabase/SKILL.md)packages/auth (@asym/auth); read packages/auth/AGENTS.md first. Apps re-export package contracts instead of creating a second client.proxy.ts (Next.js 16 Proxy, formerly middleware) through createAuthMiddleware from @asym/auth/middleware, which validates the user with auth.getUser(). Public routes are listed explicitly there.getAuthContext, requireAuth, or requireRole from @asym/auth/context. Business data access stays in packages/api; app route handlers must not import @asym/database/supabase/* or @supabase/* directly (docs/guides/architecture/data-access-boundary.md).packages/database: @asym/database/supabase/server for server code, createBrowserClient from @asym/database/supabase for the browser, and @asym/database/supabase/admin (service role) only in trusted server code.export { GET } from "@asym/api/auth/callback").proxy.ts public-route list when adding or protecting a route.packages/auth/context.*.test.ts cover the request auth context), then verify login, logout, and session refresh end to end.packages/auth; apps re-exportSkills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.