# Caching M2M access token in Actions

**URL:** <https://community.auth0.com/t/caching-m2m-access-token-in-actions/100734>\
**Category:** Get Help\
**Tags:** actions-management-api, management-api\
**Created:** [February 17, 2023, 10:27am UTC](https://community.auth0.com/t/caching-m2m-access-token-in-actions/100734 "2023-02-17T10:27:47Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![rueben.tiow](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rueben.tiow/32/11646_2.png) [@rueben.tiow](https://community.auth0.com/u/rueben.tiow)\
**Post date:** [February 17, 2023, 8:13pm UTC](https://community.auth0.com/t/caching-m2m-access-token-in-actions/100734/3 "2023-02-17T20:13:30Z")

</div>

Hi @saiful1991,

Welcome to the Auth0 Community!

I have tested this myself and found that the Access Token value is too large, which is why you are experiencing the `undefined` error.

This is consistent with our [Actions Limitations](https://auth0.com/docs/customize/actions/limitations#:~:text=Cache%20keys%20have%20a%20maximum%20size%20of%2064%20bytes%20and%20values%20have%20a%20maximum%20size%20of%202048%20bytes) documentation, which states that **Cache keys have a maximum size of 64 bytes and values have a maximum size of 2048 bytes.**

Investigating further, I found that the Access Token is 4234 bytes which exceed the maximum size allowed for a value.

I am going to look further into this with my colleagues to get a second opinion.

I will follow up with you as soon as I can.

Thanks,  
Rueben

---

_[View the full topic](https://community.auth0.com/t/caching-m2m-access-token-in-actions/100734)._
