AxMCPOAuthJWTVerifier Generated TypeScript API reference. typescript api api/reference build/apidocs/Class.AxMCPOAuthJWTVerifier.md class AxMCPOAuthJWTVerifier

AxMCPOAuthJWTVerifier

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L112

Browser-compatible OAuth/OIDC JWT verifier backed by Web Crypto and JWKS.

Constructors

Constructor

TypeScript
new AxMCPOAuthJWTVerifier(options: Readonly<AxMCPOAuthJWTValidationOptions>): AxMCPOAuthJWTVerifier;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L115

Parameters

ParameterType
optionsReadonly<AxMCPOAuthJWTValidationOptions>

Returns

AxMCPOAuthJWTVerifier

Methods

clearJWKSCache()

TypeScript
clearJWKSCache(jwksUri?: string): void;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L190

Parameters

ParameterType
jwksUri?string

Returns

void


verify()

TypeScript
verify(token: string, expected: Readonly<{
  audience: string | readonly string[];
  issuer: string;
  jwksUri: string;
  nonce?: string;
}>): Promise<AxMCPVerifiedJWT>;

Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L119

Parameters

ParameterType
tokenstring
expectedReadonly<{ audience: string | readonly string[]; issuer: string; jwksUri: string; nonce?: string; }>

Returns

Promise<AxMCPVerifiedJWT>

Docs