This repo hosts demo code that you can use to set up and use Supabase custom claims for your project.
You need to create an account on Supabase and set up a new project. You also need to have Node installed on your machine.
After you create your Supabase project, you can go to the SQL Editor and run the script under sql/create-table.sql
to create a table that can be accessed using custom claims. If you also want a bucket that can be accessed using custom claims, run the script under sql/create-bucket.sql
.
You can add a new user in the users
table by running:
npm install
npm run