Next.js helpers v2 - Get user or session on the server without HOF (`withPageAuth`)
Is there a way to get the user or session on the server (e.g. a Next.js API route) from the cookie like in v1.x?
Before, one could just do
Before, one could just do
await supabase.auth.api.getUserByCookie(req), is there an alternative for v2?