OAuth refresh token expiring after 7 days
Opened this issue ยท 1 comments
Describe the bug ๐
After generating a refresh token, it is expiring after 7 days.
Due to this the sendMail function fails as the refresh token (and access token) wasn't valid then.
pbchess/server/src/services/email.service.js
Lines 13 to 32 in 42ccc48
To Reproduce ๐
Steps to reproduce the behavior:
It may take you to wait a week after creating a new refresh token
- Create a new google oauth refresh token
- Check after some days (general behaviour is after a week), the refresh token isn't valid, and calls requiring it fails too.
Expected behaviour ๐
Access token are valid for short time, but the same is not true for refresh tokens, it should be able to send the mail.
Desktop (please complete the following information): ๐ป
- Windows 10
- Firefox
- Version 88.0
Additional context ๐
Related question on SO: https://stackoverflow.com/questions/66307450/why-my-google-drive-refresh-token-is-expiring-after-7-days
please assign me this issue