mcp-use TypeScript API
    Preparing search index...

    Function createJwtVerifier

    • Creates a verifier that rejects JWTs with invalid signatures or required claims.

      Use this when implementing a custom OAuth provider with oauthCustomProvider, so a provider that issues standard JWTs does not have to reimplement signature, issuer, audience and expiry checking.

      Parameters

      Returns OAuthTokenVerifier

      A verifier accepted anywhere an OAuthTokenVerifier is taken.

      TypeError if resource is not an absolute HTTPS URL, or an HTTP URL for localhost, without credentials, query, or fragment.

      TypeError if audience is combined with issuerBoundAccessTokens.