Autodesk-Forge / learn.forge.viewmodels

Learn Forge Tutorial: View your models using 2-legged OAuth. Available in Nodejs, .NET, Go, PHP & Java
http://learnforge.autodesk.io
MIT License
105 stars 86 forks source link

Refresh cache token when machine hibernate #13

Closed augustogoncalves closed 3 years ago

augustogoncalves commented 6 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.

https://github.com/Autodesk-Forge/learn.forge.viewmodels/blob/nodejs/routes/common/oauth.js#L42

petrbroz commented 3 years ago

Fixed with pull request #52.