StartupAPI / users

:zap: User management tool to be used in on-line projects. Includes admin dashboard.
http://www.StartupAPI.com/
MIT License
60 stars 24 forks source link

Refresh OAuth2 token if it expired #310

Open sergeychernyshev opened 3 years ago

sergeychernyshev commented 3 years ago

Currently, we just make an API call and only refresh access the token if API call fails.

Refresh token first if access_token_expires time has already passed even before making an API call.

This improves speed and reduces request load on the API provider which can potentially reduce blockage and stuff.