Role-based Access Control (RBAC) User Authorization in Next.js
Auth hooks enable us to modify the access token with custom claims to add Role-Based Access Control (RBAC) to our Supabase project. In this example we’re looking at a Next.js Slack Clone with different permission levels for users, moderators, and admins. Read the docs: https://supabase.com/docs/guides/auth... Find the code: https://github.com/supabase/supabase/... Presented by Thor Schaeff (@thorwebdev https://go.thor.bio/x) CHAPTERS: 00:00 Intro to custom JWT claims and RBAC 00:47 Demo of the Slack Clone example 02:27 Create tables for user roles and permissions 03:20 Using Auth hooks to modify the JWT 05:45 Enable the auth hook in Supabase 06:05 Enable the auth hook in local dev 06:40 Authorize based on user roles in RLS policies 08:18 Accessing user roles in your application 09:01 Outro 💻 Videos to watch next: ▶ • Fastest way to build a SaaS in 2024 - Next... ▶ • FASTEST way to get started with Next.js an... ▶ • The missing pieces to your AI app (pgvecto... 👇 Learn more about Supabase 👇 🕸 Website: https://supabase.com/ 🏁 Get started: https://app.supabase.com/ 📄 Docs: https://supabase.com/docs 🔔 Subscribe for more tutorials and feature updates from Supabase: / @supabase 📱 Connect with Us: 🐙 Github: https://github.com/supabase 💬 Discord: https://discord.supabase.com/ 🐦 Twitter: / supabase 📸 Instagram (follow for memes): / supabasecom ABOUT SUPABASE: Supabase is the open source Firebase alternative. Supabase provides a full Postgres database for every project with pgvector, backups, realtime, and more. Add and manage email and password, passwordless, OAuth, and mobile logins to your project through a suite of identity providers and APIs. Build in a weekend, scale to millions. #Supabase #AppDevelopment #RealtimeApps #DeveloperTools

Master Role-Based Access Control Authorization with OpenFGA & Node.js

How To Handle Permissions Like A Senior Dev

We made Supabase Auth way faster!

How to Build Authentication with Supabase Auth + Next.js 16 (Full Step-by-Step Tutorial)

Role-based access control (RBAC) vs. Attribute-based access control (ABAC)

How to add Role-Based Access Control in Next.js 15: Protected Routes & APIs (Auth0 RBAC Tutorial)

Role-Based Authentication in React (Complete Tutorial)

Why's nobody using Astro?

Roses Vase Painting | Gold Frame TV Art | Art Screensaver for TV 3 Hrs

Next.js 15 Tutorial - 90 - Role Based Access Control

How to install OpenClaw (aka Moltbot / ClawdBot)

Custom OIDC Provider | Supabase Office Hour AMA #4

Authorization in Next.js is Easy! (RBAC)

Advanced Row Level Security (RLS) Policies // Authorization Deep Dive

If you’re doing authorization in your API, it’s too late!

The Right Way to do Auth with the Next.js App Router - UPDATED

You Can Learn 95% Supabase Use Cases Like A Pro | Realtime, EdgeFunction, RowLevel Security, Auth

Getting Started with Supabase Auth

8 things you should NEVER do in a Database!

