Hello, I created a machine to machine application which help me enable Auth0 management API. from that API a token was generated. Currently in my login rule, the token is hardcoded (copied and paste from the API explorer) but I would like it to be dynamic so the token can be read directly from the API explorer without me copying from there everyday (my token has a 24hrs expiration).
Any idea on how to resolve it?
function (user, context, callback) {
var ManagementClient = require('auth0').ManagementClient;
var management = new ManagementClient({
token: "eyJhb.......",
domain: auth0.domain
});
here is how I currently refer to my token and do not want to have to update it daily