resolveGrantScopeIds
resolveGrantScopeIds(
claims,options):string[]
Defined in: packages/contracts/src/supabase-rls.ts:771
The set of scope ids the caller can see, resolved from the JWT grants — the JS mirror of the grant-scope RLS subquery. Returns a de-duplicated list (empty → no rows visible).
Parameters
Section titled “Parameters”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”string[]