Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google API credentials expire after one week

When I backup from WHM to my Google Drive account it works for one week only, after that authentication fails. If I recreate the credentials it works again for another week. Is there a way for this credential to never expire? I am following instructions from this link to create everything:

https://docs.cpanel.net/knowledge-base/backup/how-to-configure-google-drive-as-a-backup-additional-destination/

like image 831
MRogo Avatar asked Mar 10 '26 12:03

MRogo


1 Answers

If you check the documentation experation

enter image description here

You will notice it says OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.

Solution is to set your application to production mode and have it verified then your refresh tokens will not expire after a week.

like image 96
DaImTo Avatar answered Mar 12 '26 17:03

DaImTo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!