On the login actions with the first login I need to hit an API endpoint behind my auth wall. I would like to use an M2M token to get to the endpoint. However, as these tokens are limited, I don’t want to re-generate one every time I need to hit that endpoint.
My understanding is, actions can not persist data.
Which leads to my question: How can I generate a token and then keep it for my action to re-use every time I need to get past my auth wall?
Ideally I then use it to refresh when it expires.