buildGrantScopeAccessShapePredicate
buildGrantScopeAccessShapePredicate(
scopeColumn,claims,options):Predicate|null
Defined in: packages/contracts/src/supabase-rls.ts:902
The grant-scope predicate, bypass included — the native-path counterpart to
the grant-scope select policy, from the same declaration. A caller holding a bypass grant
gets null (no filter, every row); anyone else gets buildGrantScopeShapePredicate over
their resolved ids.
Parameters
Section titled “Parameters”scopeColumn
Section titled “scopeColumn”AnyColumn
claims
Section titled “claims”{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null
options
Section titled “options”Returns
Section titled “Returns”Predicate | null