Route Handler Cookies // Auth in the Next.js app directory
From the video description
Supabase makes auth easy by storing session data in localStorage. Unfortunately, localStorage is not available server-side - Server Components and Route Handlers. If we want to use all that fancy new app directory stuff, we need to configure Supabase Auth to use cookies! 🍪 In this video, Jon Meyers demonstrates how to add cookie-based authentication and authorization to Route Handlers in the app directory. Additionally, he gives an overview of Row Level Security (RLS) and uses policies to ensure that each user can only see and modify the data they own.
Topics
Sources
Video by Supabase, played through YouTube.
- Indie Picks
Data and selection notes
Indie Picks uses video metadata for classification. The description above is an uploader excerpt, not an independent review.
Indie Picks: Independently collected SaaS and AI product videos, organized by a founder handbook. Topics and relevance are metadata-indexed; full-video editorial review has not been completed. Descriptions are uploader excerpts where available.
Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.
Selection checks
- SaaS & AI candidates: Matches the configured criteria
- Editor-approved picks: Editorial review is required