mongoose-auth
mongoose-auth copied to clipboard
no update of expired access token ?
It seems that there should be a mechanism to automatically update the access token when it has expired.
For example, when an existing user is logging in, the expiry date could be compared with the current time at the findOrCreateUser step. If the expires date has passed, then the User record should be updated with the new access token gathered during the previously executed getAccessToken step.
It's not even clear to me how to do this manually...