Skip to content
rw3iss Auth

roleLabels()

roleLabels()

roleLabels(roles, options?): string[]

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

Map a list of roles to their labels in a single call. Returns labels in the order the input was provided.

Parameters

roles

readonly (string | RoleLike)[]

options?

RoleLabelOptions

Returns

string[]