Action : Limit the number of tokens per minute distributed


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.transaction.protocol:) {
    api.access.deny(`Access to ${} is not allowed.`);

Thank you in advance for your help.