Creates a provider that verifies Auth0 access tokens and maps their claims.
Auth0 domain and resource-server settings. Defaults to v1 environment variables.
A provider that rejects tokens not issued for the resolved MCP resource.
An Error if no domain is configured, or a TypeError if it is not a valid HTTP or HTTPS URL.
Error
TypeError
import { oauthAuth0Provider } from "mcp-use/oauth/auth0";const oauth = oauthAuth0Provider({ domain: "https://example.us.auth0.com",}); Copy
import { oauthAuth0Provider } from "mcp-use/oauth/auth0";const oauth = oauthAuth0Provider({ domain: "https://example.us.auth0.com",});
Creates a provider that verifies Auth0 access tokens and maps their claims.