How to send x-correlation-id when ssing node-auth0?

Problem statement

This article will explain how to send the x-correlation-id header when using node-auth0.

Solution

Specify the x-correlation-id value in the headers:

new ManagementClient({
  domain,
  clientId,,
  headers: { 'x-correlation-id': 'example' },
  clientSecret,
  audience,
})