Supabase Authentication: Complete Guide with Next.js

Cookie sessions, the middleware refresh bridge, getUser over getSession, and RLS policies — Supabase auth in the Next.js App Router without random logouts.