Skip to content

@nogoo9/no-crd / index / verifyAccessOrThrow

Function: verifyAccessOrThrow()

verifyAccessOrThrow(jwtPayload, action): void

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

Verifies both scope and role constraints against the JWT payload for a given action.

Parameters

jwtPayload

unknown

action

"admin" | "read" | "write" | "workspace:write" | "template:create" | "template:write"

Returns

void