Every premium and members-only resource for $9.99/month, as a no-commitment subscription. See the plans

PalateKit

Menu

Request a resource

Describe the resource you are missing in one sentence. We will email you when it is published.

0 / 280

Unlock PalateKit

Unlock everything

Plan

Paying means accepting our terms of sale.

Secure payment by Stripe. Receipts and invoices sent by email.

Welcome back

Sign in to install, download or save this resource. A free account is enough for free resources.

Supabase authentication with Next.js v1.0.0

Use this resource to integrate Supabase authentication into a Next.js App Router application

New

  • 494 downloads
  • 225 likes
  • 117 saves

Free

Install with the CLI

In a terminal, from the folder you want:

npx --yes palatekit@latest install nextjs-supabase-authentication-3

With no option, the skill goes to ~/.agents/skills/; add --agent claude-code (or codex, cursor…) to target an agent.

First time: connect the CLI with

npx --yes palatekit@latest login

The agent sets up Supabase Auth in Next.js App Router: client configuration, session checks in middleware, a callback route after sign-in and cookie-based sessions. It avoids pitfalls such as storing tokens manually or relying on getSession in server components. You get authentication that protects routes correctly.

Mostly picked by

Updated November 2, 2026

Card for the “Supabase authentication with Next.js” skill

Details

Generates with
Your agent's model
Licence
MIT

Similar resources

View all

What you get

  • SKILL.md: capabilities, requirements and client and middleware principles
  • sub-skills/: client setup, middleware, callback route and session anti-patterns

Good fit for

  • You want pages reserved for signed-in users
  • Your sign-in works, but the session is lost on reload

Not for

    Tags

    • authentication
    • supabase
    • next.js
    • middleware

    About

    You say

    “Add email sign-in with Supabase to my App Router app and protect the dashboard with middleware.”

    Card for the “Supabase authentication with Next.js” skill

    Skill published by dokhacgiakhoa under the MIT license, delivered in its original version.

    Show more

    How to use it

    1. Install the skill in your agent's skills folder
    2. Ask your agent to integrate Supabase authentication into a Next.js App Router application
    3. Review and adjust the result

    Content preview

    Files

    • LICENSE2.4 KB
    • NOTICE-PALATEKIT.md0.5 KB
    • SKILL.md1.4 KB
    • sub-skills/auth-callback-route.md0.1 KB
    • sub-skills/auth-middleware.md0.1 KB
    • sub-skills/auth-state-in-client-without-listener.md0 KB
    • sub-skills/getsession-in-server-components.md0 KB
    • sub-skills/storing-tokens-manually.md0.1 KB
    • sub-skills/supabase-client-setup.md0.1 KB

    Origin and licence

    Listed unmodified

    Author
    dokhacgiakhoa
    Source
    github.com/dokhacgiakhoa/agent-skills-4-vibe-coding-cli/tree/c4a059bbf7a8d6b2162071f0fbfe74053faa6d20/.agent/skills/nextjs-supabase-auth
    Licence
    MIT

    Notice

    « nextjs-supabase-auth » (dokhacgiakhoa, MIT) livré dans sa version d'origine : fiche en français et en anglais par PalateKit.

    User reviews

    –

    No ratings yet

    Loading reviews…

    Delete your review?

    Your rating and comment will be removed from the page.