Skip to content

supabase_custom_claims

How to implement custom claims with Supabase

supabase_custom_claims · How to implement custom claims with Supabase

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
101794supabase_custom_claimssupabase_custom_claims1.0SECUnknownJavaScript

Usage

Sources:

supabase_custom_claims — This is just one way to implement custom claims for a Supabase project. Use it when implementing the corresponding security, audit, or access-control workflow. Use the pinned upstream revision linked above as the API boundary and test it on the target PostgreSQL build.

Core Workflow

CREATE EXTENSION supabase_custom_claims;

Install the extension in the intended database, run the smallest upstream example above when available, and verify the installed version and returned values before integrating it into application SQL.

Requirements and Caveats

  • The reviewed control file declares default version 1.0.
  • The control file marks the extension as non-relocatable.
  • Confirm privileges, supported PostgreSQL versions, upgrade behavior, and failure cases against the pinned source before production use.

Table reader