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

    Function withRetries

    • Configure requests with custom retry settings. Can be used directly in object literals with spread syntax.

      Parameters

      • retries: number

        Number of retry attempts (0 to disable retries)

      Returns Partial<RequestOptions>

      Partial request options with the specified retry count

      const reqOptions = {
      ...withRetries(5),
      timeoutInSeconds: 30
      };
      await client.actions.list({}, reqOptions);