GrantScopeClaimOptions
GrantScopeClaimOptions =
object
Defined in: packages/contracts/src/supabase-rls.ts:617
Properties
Section titled “Properties”grantsClaimPath?
Section titled “grantsClaimPath?”
optionalgrantsClaimPath?: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
Section titled “roleValues”roleValues:
string[]
Defined in: packages/contracts/src/supabase-rls.ts:621
Grant role values that confer access (e.g. [“teacher”, “assistant”]).
scopeIdField?
Section titled “scopeIdField?”
optionalscopeIdField?:string
Defined in: packages/contracts/src/supabase-rls.ts:623
Field within scope holding the id (e.g. “offeringId”). Defaults to ${scopeKind}Id.
scopeKind
Section titled “scopeKind”scopeKind:
string
Defined in: packages/contracts/src/supabase-rls.ts:619
Value matched against each grant’s scope.kind (e.g. “offering”).