Skip to content

OwnerOrAdminAccessOptions

OwnerOrAdminAccessOptions = object

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

Claim-reading options for the read mirror; every field must match the value the policies were built with, or the two surfaces stop agreeing.

optional adminRoleName?: string

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

Role value (in app_metadata.roles) that bypasses ownership (default “admin”).


optional adminRolesClaimPath?: readonly string[]

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

Path to the roles array in the claims. Defaults to adminRolesClaimPath.