Published On Feb 3, 2023
Supabase Auth simplifies building an app with users. Remix is a web framework that gives you little bits of server where you need it! 🚀
In this video, Jon Meyers takes us through the brand new Supabase Auth Helpers package, which provides convenience functions around storing session data in cookies, rather than localStorage. This makes it possible to send authenticated requests to your database, from the client or server! 🍪
💿 Remix Auth Helpers Docs: https://rebrand.ly/remix-auth
00:00 Introduction
00:54 Creating a Supabase project
01:31 Creating a Remix app
02:55 Fetching data in a loader
04:22 Install supabase-js
06:57 Enabling read access with RLS
08:12 Implementing Supabase Auth
11:47 Filter RLS policy to authenticated users
15:21 Store session data in cookie
18:48 Modify policy to read access for specific user
20:21 Call loaders on sign in and sign out
21:48 Outro
🥚 Free egghead course on Remix and Supabase: https://egghead.io/courses/build-a-re...
👇 Learn more about Supabase 👇
🕸 Website: https://supabase.com/
🏁 Get started: https://app.supabase.com/
📄 Docs: https://supabase.com/docs
🐙 Github: https://github.com/supabase
💬 Discord: https://discord.supabase.com/
🐦 Twitter: / supabase