I currently have a refresh token API call after every 60 mints,
Here is my condition:
**const expires_in = 3600 //This is 3600s comes from auth api
if (refreshToken && expires_in * 1000 > Date.now() + 3600000) {
// RefreshToken Function
else {
console.log("accessToken not expired yet");
}**
This condition is not work properly. This condition call RefreshToken Function on every reload but I want to call this after every 60 minutes.
Accurate my condition which is call after every 60 minutes.