Skip to content

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).

{[key: string]: unknown; app_metadata?: {[key: string]: unknown; roles?: string[]; }; sub?: string; } | null

GrantScopeClaimOptions

string[]