mcp-use TypeScript API
    Preparing search index...

    Function oauthSupabaseProvider

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

      Parameters

      • options: SupabaseOAuthProviderOptions = {}

        Supabase project or URL, optional JWT secret/audience, and resource-server settings. Defaults to v1 environment variables.

      Returns OAuthProvider<SupabaseOAuthUser>

      A provider that rejects tokens without a valid configured Supabase signature and issuer.

      A TypeError if project settings are invalid, audience is empty, or jwtSecret is shorter than 32 bytes.

      import { oauthSupabaseProvider } from "mcp-use/oauth/supabase";

      const oauth = oauthSupabaseProvider({
      projectId: "example-project",
      });