DEV Community

Discussion on: How to temporarily store API response?

Collapse
 
devtalhaakbar profile image
Muhammad Talha Akbar

Let's say you stored the API data in local storage. But, if the file info changed then, your local storage will have outdated version of the list. How are you going to deal with inconsistency of information?

Side-question: Why are you not using refresh tokens? I just read that you can use them to get a new access token if the current one has been expired.

Side-note: Local storage has size limitations, I believe.

Collapse
 
swadhwa16 profile image
Sumit Wadhwa

Thanks Akbar.