Skip to content

@nogoo9/no-crd / index / verifyToken

Function: verifyToken()

verifyToken(token, expectedAudience?): Promise<any>

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

Verifies a token's signature and expiration, returning its payload. Supports symmetric HMAC (HS256), asymmetric public key PEM (RS256/ES256), dynamic JWKS URL keys, and OAuth Token Introspection (RFC 7662).

Parameters

token

string

expectedAudience?

string

Returns

Promise<any>