Skip to content
rw3iss Auth

RoleLike

RoleLike

Defined in: @rw3iss/auth-shared/src/constants/roles.ts

Anything with a code, optionally a name from a DB-backed dynamic role record. Accepts either a raw string or an object — the ergonomic shape so the same util works for static codes (roleLabel('seller')) and dynamic records (roleLabel(orgRoleRecord)).

Properties

code

code: string

Defined in: @rw3iss/auth-shared/src/constants/roles.ts


name?

optional name?: string

Defined in: @rw3iss/auth-shared/src/constants/roles.ts