Auth0 Node.js SDK - v5.0.0
    Preparing search index...

    Interface ManagementClientOptionsWithToken

    Configuration for token-based authentication. Use this when you already have a valid Management API token.

    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    token: 'your-static-token'
    });
    const client = new ManagementClient({
    domain: 'your-tenant.auth0.com',
    token: () => getAccessToken() // Function that returns a token
    });
    interface ManagementClientOptionsWithToken {
        headers?: Record<string, Supplier<undefined | string>>;
        domain: string;
        audience?: string;
        telemetry?: boolean;
        clientInfo?: { name: string; [key: string]: unknown };
        withCustomDomainHeader?: string;
        token: Supplier<string>;
    }

    Hierarchy (View Summary)

    Index

    Properties

    headers?: Record<string, Supplier<undefined | string>>

    Additional headers to include in requests.

    domain: string

    Auth0 domain (e.g., 'your-tenant.auth0.com')

    audience?: string

    API audience. Defaults to https://{domain}/api/v2/

    https://{domain}/api/v2/

    telemetry?: boolean

    Enable/disable telemetry. Defaults to true

    true
    
    clientInfo?: { name: string; [key: string]: unknown }

    Custom client information for telemetry

    withCustomDomainHeader?: string

    Custom domain Header to use for whitelisted requests. When provided, the Auth0-Custom-Domain header will be added automatically to supported endpoints. This works seamlessly with custom fetchers - both the custom domain logic and your custom fetcher will be applied.

    token: Supplier<string>

    A function that returns the access token