DEV Community

Cover image for How to write a Supabase security policy in Typescript
hmmhmmhm
hmmhmmhm

Posted on

How to write a Supabase security policy in Typescript

Supabase Row Level Security Editor Logo Preview Image

Supabase utilizes Row Level Security (RLS) to configure access control per account privilege to DB rows, allowing clients to make direct requests to the DB without API development.

However, RLS rules must be written in PostgreSQL, which is frustrating when writing complex rules.

The Supabase RLS Editor converts your project's table schema to a Typescript specification, and then allows you to write RLS rules in Typescript with Intellisense.

You don't need to set up anything else, just follow the link below and it will open a code window on the web and work with your project.

Supabase RLS Editor
supabase-rls.up.railway.app

Top comments (0)