@supabase/server adapters are removed on December 1: move off them without opening your API
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
- Four imports go away:
@supabase/server/adapters/hono,@supabase/server/adapters/h3,@supabase/server/adapters/elysiaand@supabase/server/adapters/nestjs. They still work today. - Nothing else changes. Plain
withSupabase(config, handler)and the@supabase/server/middleware/*imports are not deprecated. - The replacement is a "bridge": one file you copy into your project from Supabase's examples. It needs
@supabase/server1.6.0 or later, Node.js 22 or later, and@supabase/middlewareadded as a direct dependency. - It matters to many apps: npm counted about 1.4 million downloads of
@supabase/serverin the week to November 23. Not all of them use an adapter, so check yours.
Source: Supabase changelog: framework adapters deprecated and Server: Frameworks, checked November 25, 2026.
Am I affected? Check in two minutes
- 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. - If you find it, note the
authvalue in everywithSupabase(...)call next to it:'user','none','publishable'or'secret'. A barewithSupabase()counts as'user'. Write this list down before anyone changes anything. It is your record of which endpoints must stay private. - Open
package.jsonand look at the@supabase/serverline. A^or~in front of the version lets a new install pick a newer release.
What you might see
| What you see | Why | What to do |
|---|---|---|
The build fails with Cannot find module or Package subpath './adapters/hono' is not defined | A new install picked up a release without the adapters | Pin 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 login | The agent replaced auth: 'user' with withClaims(), which lets anonymous requests through | Use withRequiredClaims() for those endpoints and test for 401 |
| New rows are saved without a user, or "my items" shows nothing | Code still reads userClaims.id; the new key is jwtClaims.sub | Rewrite each read, don't rename in bulk |
| Your front end shows a strange error text after a 401 | The 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:
withRequiredClaims()refuses anonymous requests. This is the replacement forauth: 'user'and for a barewithSupabase().withClaims()lets anonymous requests through withjwtClaimsset tonull. Use it only for pages that are meant to be public.
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
- Open your app in a private browser window without logging in, and try a page that shows your own data. It should ask you to log in or show nothing.
- Or call a private endpoint with no token, for example
curl -i https://your-api.example.com/me. It should answer401, not200. - Log in and try the same page. It should work, and new items should be saved under your user.
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.