© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
184 replies
Erkan

Why is @supabase/auth-helpers-nextjs replaced by @supabase/ssr ?

In the old documentation we had, we used
import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs";
import { cookies } from "next/headers";
const supabase = createRouteHandlerClient({ cookies });
import { createRouteHandlerClient } from "@supabase/auth-helpers-nextjs";
import { cookies } from "next/headers";
const supabase = createRouteHandlerClient({ cookies });

to access an authenticated user's session

Except during the Nextjs13 conf you announced a brand new method with /ssr
I can't understand what the purpose of this change is, knowing that the old way of doing things was already ssr?

https://github.com/vercel/next.js/blob/b9dd6c4ff6b025453504c6a5669094260c23ca1b/examples/with-supabase/utils/supabase/server.ts

thank you for your help
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements
Next page

Similar Threads

auth-helpers vs @supabase/ssr
SupabaseSSupabase / help-and-questions
3y ago
nextjs auth wihtout helpers
SupabaseSSupabase / help-and-questions
4y ago
Struggles auth-helpers-nextjs
SupabaseSSupabase / help-and-questions
4y ago
Supabase auth NextJs why action?
SupabaseSSupabase / help-and-questions
14mo ago