Rate limit for Auth0 management requests in actions

Hi,
I started migrate our Auth0 rules to actions and I am using nodejs package auth0 inside actions to get user info / update user / get user by email and more.

const ManagementClient = require('auth0').ManagementClient;

and I read about rate limits for these calls under actions.

Can you please describe these limitations more? I read docs, but I am still not sure. Could it be problem if we do a lot of calls under actions?

Thank you.

Hi @ondrej1,

Yes, it can definitely reach your rate limit if you perform excessive amounts of requests to the Management API. You can review your subscription limit in our Rate Limit Configurations documentation.

To work around these limitations, we strongly recommend the caching your Management API access tokens in your Action script.

This way, you can avoid hitting the rate limit too quickly.

Thanks,
Rueben

Hi rueben.tiow,

Thank you for your response. I checked shared auth0 code for cache Auth0 access token. I found from with latest version of auth0 (4.13.0). There is no more function management.getAccessToken() so then the code is not possible to run with latest version. I needed downgrade to version 3.7.2 (not ideal).

Is there a way how to get accessToken with latest version 4.13.0?

And also I found cache limitation to 4kB for single key and accessToken could be more. How to deal with it?

Thank you.

Hi @ondrej1,

I have tested this and confirmed that the management.getAccessToken() has been removed in the latest version of Auth 4.13.0.

Moving forward, you could also use the client credentials grant to make a post request (Axios, for example) to get the access token while still using the latest version.

And yes, cache items have a maximum size of 4kB with an accumulative size of the cache keys not exceeding 8kB. This is mentioned in our Actions Limitations documentation.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.