Server-side Supabase utilities for modern runtimes.
@supabase/server gives you batteries-included auth and client creation for
Edge Functions, Workers, and any server runtime that speaks standard fetch.
One import, one line of config — auth is verified, Supabase clients are ready,
CORS is handled. Your handler only runs on successful auth.
Server-side Supabase utilities for modern runtimes.
@supabase/servergives you batteries-included auth and client creation for Edge Functions, Workers, and any server runtime that speaks standardfetch. One import, one line of config — auth is verified, Supabase clients are ready, CORS is handled. Your handler only runs on successful auth.Auth modes
"user""publishable"defaultpublishable key"secret"defaultsecret key"none"Bare
"publishable"/"secret"match only thedefaultkey; use"secret:<name>"for a specific key or"secret:*"to accept any key.Array syntax tries modes in order — first match wins:
Framework adapters
Adapters for Hono, H3 / Nuxt, Elysia, and NestJS ship inside this package:
Composable primitives
For custom flows, all lower-level functions are available from
@supabase/server/core:Installation