Machine-to-machine access tokens in a Serverless architecture

We are using AWS AppSync in a serverless architecture where AppSync invokes lambdas for its resolvers. We have one query that calls the Auth0 management API using the node Auth0 sdk so that we can link a users account. Seen as a new lambda is invoked every time a query is called from the client does this mean that a new machine-to-machine access token is created? We are on the starter plan so we don’t want to quickly use up our 1000 monthly token usage.

Hi @walterholohan,

Welcome to the Auth0 Community!

Unless you are providing a mechanism for caching the token, a new one is being issued.

If I understand you correctly, these tokens won’t be counted towards your quota.

Hope this helps!

1 Like

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