Google API 凭据将在一周后过期

MRo*_*ogo 3 google-api google-drive-api google-oauth google-developers-console

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

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

DaI*_*mTo 6

如果你检查文档expexpation

在此输入图像描述

你会注意到它说 OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.

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