Supabase Auth with the Next.js App Router
The Auth helpers package is deprecated. Use the new @supabase/ssr
package for Server Side Authentication. @supabase/ssr
takes the core concepts of the Auth Helpers package and makes them available to any server framework. Read the migration doc to learn more.
We recommend setting up Auth for your Next.js app with @supabase/ssr
instead. Read the Next.js Server-Side Auth guide to learn how.