Skip to content

GrantScopeClaimOptions

GrantScopeClaimOptions = object

Defined in: packages/contracts/src/supabase-rls.ts:617

optional grantsClaimPath?: string[]

Defined in: packages/contracts/src/supabase-rls.ts:625

Path to the grants array in the claims. Defaults to app_metadata.authorization.grants.


roleValues: string[]

Defined in: packages/contracts/src/supabase-rls.ts:621

Grant role values that confer access (e.g. [“teacher”, “assistant”]).


optional scopeIdField?: string

Defined in: packages/contracts/src/supabase-rls.ts:623

Field within scope holding the id (e.g. “offeringId”). Defaults to ${scopeKind}Id.


scopeKind: string

Defined in: packages/contracts/src/supabase-rls.ts:619

Value matched against each grant’s scope.kind (e.g. “offering”).