From the course: Supabase Essential Training
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Access control
From the course: Supabase Essential Training
Access control
- [Instructor] With any application accessible through the internet, security is a top priority. In support of security, Supabase has three basic roles. Access can be granted based on a combination of these roles and SQL. For example, let's consider an e-commerce site. The anonymous role includes anyone in the world who can access your Supabase instance. You want everyone in the world to be able to list all of the items you have for sale, so you can give access to read all records about items to the anonymous role. We've switched to the anonymous role, and we can still see all of the items. Next, you might have sales and other promotions that are only available to customers who have signed up for your site and are currently logged in. You can grant read access to the promotions for authenticated users, while denying access to anonymous users. Finally, you might want to build an admin panel for your store where you…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.