Expired Management API Token with node-auth0

Hi @alan.h,

Welcome to the Auth0 Community!

The error you experience happens when the access token being used has expired. I suggest referring to this related community post that addresses this issue.

Essentially, you will want to verify the exp claim of your Management API access token is still valid:

  1. Copy the generated Management API token from your code,
  2. Paste the token on https://jwt.io/ and copy exp value in the payload
  3. Go to https://www.epochconverter.com/ and verify if the exp value is expired.

Let me also mention that you might hit the capacity for your monthly M2M authentication calls if you issue a new access token for every request. In general, you should cache the access token and renew it only once it has expired.

Thanks,
Rueben