Skip to main content

Function: loadRolesConfig()

loadRolesConfig(svc, companyId): Promise<RolesConfig>

Defined in: src/server/auth/access.ts:43

Load the company's configurable role→domains map (settings access_roles, or the seed defaults). Tolerant of malformed stored data — unknown domains are dropped, missing labels fall back to the key.

Parameters

svc

SupabaseClient

companyId

string

Returns

Promise<RolesConfig>