ssr package, user session is shared through the entire stack.Creating a Supabase client with the ssr package automatically configures it to use cookies. This means your user's session is available throughout the entire Next.js stack - client, server, App Router, Pages Router. It just works!
src/lib/supabase.ts: