Skip to content

GrantScopeClaimOptions

GrantScopeClaimOptions = object

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

optional grantsClaimPath?: string[]

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

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


roleValues: string[]

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

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


optional scopeIdField?: string

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

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


scopeKind: string

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

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