Nextjs Pages Router & @supabase/ssr: how to get session in middleware
We're on Nextjs Pages Router but recently upgraded from auth-helpers to @supabase/ssr. We don't seem to be able to get the user session in middleware anymore and the docs don't show which client to use in middleware: https://supabase.com/docs/guides/auth/server-side/nextjs?queryGroups=router&router=pages
Is it not possible at all? Should we protect pages on each pages level instead?
Is it not possible at all? Should we protect pages on each pages level instead?
