Typefully

Setting Up Row-Level Security for Postgres Using @WorkOS and Neon

Avatar

Share

Β β€’Β 

10 months ago

Β β€’Β 

View on X

Secure your Postgres data by combining @WorkOS user auth and Neon RLS Authorize. πŸ” A new guide walks you through setting up row-level security (RLS) with JWTs.
@WorkOS generates JWTs; @neondatabase applies RLS based on those tokens. This keeps authorization logic in the database, not just in your app. βš™οΈ
The tutorial includes Drizzle examples, SQL snippets, and instructions for installing pg_session_jwt. It’s a straightforward way to safeguard sensitive data. πŸ—οΈ
Check out the details and starter code here: neon.tech/docs/guides/neon-rls-authorize-workos
Avatar

Zack Proser

@zackproser

Developer Education at WorkOS. Full-stack open-source hacker and technical writer. I love building tools and sharing knowledge.