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
new AxMCPOAuthJWTVerifier(options: Readonly<AxMCPOAuthJWTValidationOptions>): AxMCPOAuthJWTVerifier;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L115
Parameters
| Parameter | Type |
|---|---|
options | Readonly<AxMCPOAuthJWTValidationOptions> |
Returns
AxMCPOAuthJWTVerifier
Methods
clearJWKSCache()
clearJWKSCache(jwksUri?: string): void;Defined in: https://github.com/ax-llm/ax/blob/e4219a44b7581a55a40d9dd62d2c281062ff078d/src/ax/mcp/oauth/jwt.ts#L190
Parameters
| Parameter | Type |
|---|---|
jwksUri? | string |
Returns
void
verify()
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
| Parameter | Type |
|---|---|
token | string |
expected | Readonly<{ audience: string | readonly string[]; issuer: string; jwksUri: string; nonce?: string; }> |
Returns
Promise<AxMCPVerifiedJWT>