Video by HeyTimDev · streamed from YouTube. All rights remain with the creator.
Lesson 7: Authentication with Supabase
About this lesson
In this tutorial, HeyTimDev integrates Supabase authentication into the short-video app to handle user login, sign-up and the management of user sessions, the foundation that every social feature in the series depends on. It begins by setting up the login and sign-up pages, with form inputs for the email address, the password and, when signing up, a username. You then connect these screens to Supabase for user authentication and create a custom users table in the database to hold the app's own information about each person. The video shows how to store user information in that table when someone signs up, so that the rest of the app can show usernames and other details. A major part of the video is managing the authentication state with a custom auth provider in React Native. The provider keeps track of the signed-in user and shares that information with every screen, so that sessions persist across the whole app and users stay signed in. With the provider in place, the video implements the complete flow for signing in, signing up and signing out. It also explains how to handle user data efficiently across multiple pages, keeping the details in one place rather than making redundant requests to the back end from every screen that needs them. By the end, the app has a fully functional authentication system powered by Supabase, ready for the video uploads and camera features added in the next part. Afterwards, read Chapter 7 of the course book, which works through password strength by hand.