Closed augustogoncalves closed 3 years ago
Although elegant, the setTimeout fails if the machine hibernate (which happens on localhost), after that the access_token does not refresh and we need to restart the project.
setTimeout
https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/nodejs/routes/common/oauth.js#L42
Fixed with pull request #52.
Although elegant, the
setTimeout
fails if the machine hibernate (which happens on localhost), after that the access_token does not refresh and we need to restart the project.https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/nodejs/routes/common/oauth.js#L42