I have a situation like :
I have search API, before calling it I need to call getAccessToken API and it will give me the accessToken & expiry, this expiry is currently 1hr. and I need to store these accessToken and expiry somewhere.
in the next corresponding search API calls, I need to check like the accessToken is valid or not, if it valid I do not need to call the getAccessToken API again. but if it not valid, I need to call the getAccessToken API and update the values of accessToken & expiry.
But my big question is where I need to store this accessToken & expiry, these are sensitive data and which will update for every 1hr.