Hello,
Following the arrival of the “Action” part, we would like to set up a new “Custom Actions” to limit the number of tokens distributed every minute.
I am a beginner in this type of configuration and I have a lot of difficulty in building this request.
Do you have an idea?
I started my request like this:
exports.onExecutePostLogin = async (event, api) => {
if (event.connection.id == ('') && event.transaction.protocol:) {
api.access.deny(`Access to ${event.client.name} is not allowed.`);
}
};
Thank you in advance for your help.