Caching M2M access token in Actions

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 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