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

    Function CustomDomainHeader

    • Configure requests to use a custom domain header. Can be used directly in object literals with spread syntax. Note: This applies the header to all requests. For automatic path-based filtering, use withCustomDomainHeader in ManagementClient constructor options.

      Parameters

      Returns Partial<RequestOptions>

      Partial request options with the custom domain header

      const reqOptions = {
      ...CustomDomainHeader('auth.example.com'),
      timeoutInSeconds: 30
      };
      await client.actions.list({}, reqOptions);