VibeRescue · Blog

@supabase/server adapters are removed on December 1: move off them without opening your API

November 25, 2026 · 6 min read

If an AI tool such as Cursor, Claude Code or Bolt built your app a small API with Hono, Nuxt (H3), Elysia or NestJS, it may log users in through a Supabase adapter. Supabase removes those adapters from the @supabase/server package on December 1, 2026. Your app keeps working until something reinstalls the package. Then the build fails, or worse, a hurried fix leaves private pages open to anyone. This guide shows how to check in two minutes, how to buy time safely, and what to tell your AI agent.

What changes on December 1, 2026

Source: Supabase changelog: framework adapters deprecated and Server: Frameworks, checked November 25, 2026.

Am I affected? Check in two minutes

  1. Open your repo on GitHub and search the code for @supabase/server/adapters. No results means this change doesn't affect you. You can stop here.
  2. If you find it, note the auth value in every withSupabase(...) call next to it: 'user', 'none', 'publishable' or 'secret'. A bare withSupabase() counts as 'user'. Write this list down before anyone changes anything. It is your record of which endpoints must stay private.
  3. Open package.json and look at the @supabase/server line. A ^ or ~ in front of the version lets a new install pick a newer release.

What you might see

What you seeWhyWhat to do
The build fails with Cannot find module or Package subpath './adapters/hono' is not definedA new install picked up a release without the adaptersPin the version you had (below), then migrate
After the AI "fixed" the build, logged-out visitors can open pages or data that used to need a loginThe agent replaced auth: 'user' with withClaims(), which lets anonymous requests throughUse withRequiredClaims() for those endpoints and test for 401
New rows are saved without a user, or "my items" shows nothingCode still reads userClaims.id; the new key is jwtClaims.subRewrite each read, don't rename in bulk
Your front end shows a strange error text after a 401The 401 body changed shape (it now has a code such as MISSING_CREDENTIALS)Check any code that reads the error body

Buy time first: pin the version you run today

If you can't migrate this week, stop the change from reaching you. In package.json, remove the ^ or ~ so the version is exact, and keep your lockfile (package-lock.json, pnpm-lock.yaml or bun.lock) committed. Supabase has not said which version number removes the adapters, so an exact pin is the safe choice.

"@supabase/server": "1.9.2"

Use the version your lockfile already has if it's different. Then tell your AI agent not to upgrade @supabase/server until you've migrated.

The auth trap: the one mistake that opens your API

The old adapters refused requests without a logged-in user and answered 401. In the new setup, two pieces look almost the same:

Supabase's own docs warn that swapping in withClaims() "turns a 401 into a silent 200": no error, no failed build, and your private data answers anyone. An AI agent that only wants the build to pass can pick the wrong one. Endpoints with auth: 'publishable' or auth: 'secret' have no bridge piece; Supabase says to leave them on withSupabase.

What the change looks like (Hono)

From Supabase's migration table. Your agent copies the bridge file supabase-middleware.ts from Supabase's examples/frameworks folder as is, comments included:

import { withSupabase } from '@supabase/server/adapters/hono'
  →  import { toHono } from './lib/supabase-middleware.js'

app.use('*', withSupabase({ auth: 'user' }))
  →  app.use('*', toHono([withRequiredClaims(), withSupabaseClient()]))

app.use('*', withSupabase({ auth: 'none' }))
  →  app.use('*', toHono([withSupabaseClient()]))

c.var.supabaseContext.supabase      →  c.var.supabase
c.var.supabaseContext.userClaims.id →  c.var.jwtClaims.sub

H3 (Nuxt), Elysia and NestJS follow the same idea with their own bridge file. On Hono, register the bridge before the routes it protects: a route added above it runs with no login check and no error.

Prompt for your AI agent

Supabase's frameworks guide includes a full migration prompt. Give it to your agent together with these limits:

Migrate off @supabase/server/adapters before December 1, 2026, using the
"Moving off the adapters" steps and prompt in Supabase's Server: Frameworks guide.
1) First list every adapter registration and its auth value. Show me the list.
2) auth: 'user' (or bare withSupabase()) becomes withRequiredClaims().
   NEVER use withClaims() for these. 'publishable' and 'secret' stay on withSupabase.
3) Rewrite userClaims reads one by one (id -> sub, appMetadata -> app_metadata).
4) Don't change database migrations, secrets or unrelated code. Show me the diff.
5) Then prove each private endpoint returns 401 without a token.

Never paste access tokens, secret keys or database passwords into the chat.

Check that private pages are still private

A build that passes doesn't prove this. Supabase says the same: check the 401 separately.

FAQ

Will my app stop working on December 1 by itself?

Not if nothing reinstalls the package. Supabase says the adapters still work today and are removed from the package on December 1, 2026. Your app breaks when a new install picks up a release without them: a dependency update, a fresh build without a lockfile, or an AI agent that upgrades packages. Then the build fails because the import no longer exists.

Do I use these adapters?

Search your repo for @supabase/server/adapters. If nothing matches, this change doesn't affect you. Plain withSupabase(config, handler) from @supabase/server is not deprecated and needs no change.

What is the auth trap?

The old adapters rejected requests without a logged-in user. The new withClaims() entry lets them through with jwtClaims set to null. If an AI agent swaps auth: 'user' for withClaims() instead of withRequiredClaims(), a private endpoint answers 200 to anyone, and nothing shows an error.

Can I wait and migrate later?

Yes, if you pin the exact version you run now (for example 1.9.2, without ^ or ~) and keep your lockfile committed. Then migrate when you have time, and test that private endpoints still return 401 without a token.

Want a free health check?

Paste a public GitHub repo into /check/ for the dated platform checks, or into the free Rescue Scan to classify the problem type. Both run in your browser; nothing is stored.

Run the free monthly checks → Run the free Rescue Scan →