Skip to content

@nogoo9/no-crd / index / verifyRoleOrThrow

Function: verifyRoleOrThrow()

verifyRoleOrThrow(jwtPayload, requiredRole?, jsonPathExpr?): void

Defined in: src/k8s/auth.ts:663

Validates role against JWT payload, throwing a clear error if mismatch.

Parameters

jwtPayload

unknown

requiredRole?

string

jsonPathExpr?

string = "$.realm_access.roles"

Returns

void