How to handle access_token & refresh_token

Hello,
I am doing an integration with Mercadolibre, for authorization they use an access_token & refresh_token. Every time an access_token is requested, a refresh_token is delivered so that when the access_token expires, a new one can be requested by means of a GET command.

They suggest that I renew the access token only when it becomes invalid.

How do you recommend me to handle it?

Thank you very much,

Hi. Use datastore to save the access token and the expiration date for that. So you can check the datastore everytime you will run your scenario. If the token is expired you do a new request for get a new one.


Thanks, Helio!
Wemakefuture
If you have questions reach out :wink: