HackerTube.dev

Delicious Server Component Cookies // Auth in the Next.js app directory

Supabase · 16.3K views · 2023-03-03 · 18:34

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

From the video description

Supabase makes auth easy™️ by storing session data in localStorage. Unfortunately, localStorage is not available on the server. If we want to use those fancy new app directory Server Components, we need to configure Supabase Auth to use cookies! 🍪 In this video, Jon Meyers demonstrates building a Next.js application from scratch, sharing session information across both Client and Server Components. Additionally, he gives an overview of Row Level Security (RLS) policies and how to ensure that only authenticated users can query data from Supabase.

Topics

Search by tags

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

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources