Software Sessions cover image

Ant Wilson on Supabase

Software Sessions

00:00

Postgres Authentication - What's Happening Behind the Scenes?

The security rules live in your database as SQL. You do a create policy query, and you say, anytime someone tries to select or insert or update, apply this policy. And then how it all fits together is our auth server, Go True. Someone will basically make a request to sign in or sign up with email and password. We create that user inside the database. They get issued a UUID, and they get issued JSON web token at JWT. When they make a request via Postgres, they send the JWT in the authorization header. Then Postgres will pull out that JWT, check the subclaim, which is the Uuid, and compare it to any rows

Play episode from 11:13
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app