Creates a provider that verifies WorkOS access tokens and maps their claims.
WorkOS AuthKit origin and resource-server settings.
A provider that rejects tokens not issued for the resolved MCP resource.
A TypeError if subdomain is empty or uses a non-HTTPS URL.
TypeError
subdomain
import { oauthWorkOSProvider } from "mcp-use/oauth/workos";const oauth = oauthWorkOSProvider({ subdomain: "example.authkit.app",}); Copy
import { oauthWorkOSProvider } from "mcp-use/oauth/workos";const oauth = oauthWorkOSProvider({ subdomain: "example.authkit.app",});
Creates a provider that verifies WorkOS access tokens and maps their claims.