In the article here: https://auth0.com/docs/api/management/v2/tokens#automate-the-process it describes the general steps of automating the process of generating a new API token for the management API. But there’s no shown example which leads to a lot of questions.
(I have a Node API running on Heroku):
- How will I automate this process? Do I get my backend to run a script (with the code provided in the link) at a 24-hour interval?
- Do I keep the API Token stored as an environment variable? Heroku is said to restart on change of environment variables
A full example would make this a lot more clear.