Skip to content

@nogoo9/no-crd / index / verifyScopeOrThrow

Function: verifyScopeOrThrow()

verifyScopeOrThrow(jwtPayload, requiredScope?, jsonPathExpr?): void

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

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

Parameters

jwtPayload

unknown

requiredScope?

string

jsonPathExpr?

string = "$.scope"

Returns

void