Within an action, calling management API getRoles(...)
leads to long waits, then to the posted error message. How can you unravel this type problem? What am I doing wrong?
exports.onExecutePostLogin = async (event, api) => {
[...]
const management = new auth0.ManagementClient({
// identifiers with caps are defined
domain: configuration.AUTH0_DOMAIN,
clientId: configuration.AUTH0_CLIENT_ID,
clientSecret: configuration.AUTH0_SECRET,
});
var my_roles = await management.getRoles();
[...]
}
Did anyone meet this type of problem?