severity: errorpack: supabase-authv1.0 core
supabase-auth/deprecated-auth-helpers
Import from the deprecated `@supabase/auth-helpers-nextjs`
npx @pitcheye/check . --pack supabase-authwhyItBreaks
auth-helpers is deprecated and never received Next 15 support: its cookie API is synchronous, its peer range caps Next at 14, and it silently stops refreshing sessions on Next 15. It is also the source of most broken RSC auth setups.
✖ Bad — triggers errorfixtures/supabase-auth-deprecated-auth-helpers/bad
import { createServerComponentClient } from '@supabase/auth-helpers-nextjs';✓ Good — passes checkfixtures/supabase-auth-deprecated-auth-helpers/good
import { createServerClient } from '@supabase/ssr';suggestedFix
Import `createServerClient` / `createBrowserClient` from `@supabase/ssr` and pass an explicit `cookies: { getAll, setAll }` adapter.
explain_rule({"supabase-auth/deprecated-auth-helpers"})Agent & MCP JSON output contract
{
"ruleId": "supabase-auth/deprecated-auth-helpers",
"pack": "supabase-auth",
"severity": "error",
"file": "apps/web/src/app/dashboard/page.tsx",
"line": 6,
"message": "an import from '@supabase/auth-helpers-nextjs'",
"whyItBreaks": "auth-helpers is deprecated and never received Next 15 support: its cookie API is synchronous, its peer range caps Next at 14, and it silently stops refreshing sessions on Next 15. It is also the source of most broken RSC auth setups.",
"suggestedFix": "Import `createServerClient` / `createBrowserClient` from `@supabase/ssr` and pass an explicit `cookies: { getAll, setAll }` adapter.",
"docsUrl": "https://pitcheye.dev/rules/supabase-auth-deprecated-auth-helpers"
}Markdown: curl -H "Accept: text/markdown" https://pitcheye.dev/rules/supabase-auth-deprecated-auth-helpers
raw markdown
# supabase-auth/deprecated-auth-helpers
- **severity:** error
- **pack:** supabase-auth
- **docs:** https://pitcheye.dev/rules/supabase-auth-deprecated-auth-helpers
## whyItBreaks
auth-helpers is deprecated and never received Next 15 support: its cookie API is synchronous, its peer range caps Next at 14, and it silently stops refreshing sessions on Next 15. It is also the source of most broken RSC auth setups.
## bad
```ts
import { createServerComponentClient } from '@supabase/auth-helpers-nextjs';
```
## good
```ts
import { createServerClient } from '@supabase/ssr';
```
## suggestedFix
Import `createServerClient` / `createBrowserClient` from `@supabase/ssr` and pass an explicit `cookies: { getAll, setAll }` adapter.
## commands
```bash
npx @pitcheye/check . --pack supabase-auth
```
```json
{"tool":"explain_rule","arguments":{"ruleId":"supabase-auth/deprecated-auth-helpers"}}
```