Google API 凭据将在一周后过期

Google API credentials expire after one week

当我从 WHM 备份到我的 Google Drive 帐户时,它只能工作一周,之后身份验证失败。如果我重新创建凭据,它会再工作一周。有没有办法让这个凭证永不过期?我正在按照 link 中的说明创建所有内容:

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

如果您查看文档 experation

您会注意到上面写着 OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.

解决方案是将您的应用程序设置为生产模式并进行验证,这样您的刷新令牌将不会在一周后过期。