mcp-use TypeScript API
    Preparing search index...

    Function oauthAuth0Provider

    • Creates a provider that verifies Auth0 access tokens and maps their claims.

      Parameters

      Returns OAuthProvider<Auth0OAuthUser>

      A provider that rejects tokens not issued for the resolved MCP resource.

      A TypeError if domain is not a valid HTTP or HTTPS URL.

      import { oauthAuth0Provider } from "mcp-use/oauth/auth0";

      const oauth = oauthAuth0Provider({
      domain: "https://example.us.auth0.com",
      });