google-api - Google API 凭据在一周后过期
问题描述
当我从 WHM 备份到我的 Google Drive 帐户时,它只能工作一周,之后身份验证失败。如果我重新创建凭据,它会再次工作一周。有没有办法让这个凭证永不过期?我正在按照此链接中的说明创建所有内容:
解决方案
如果您检查文档体验
你会注意到它说 OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.
解决方案是将您的应用程序设置为生产模式并对其进行验证,然后您的刷新令牌将不会在一周后过期。
推荐阅读
- algorithm - 是否有任何模式/算法可以知道动态树中某些属性的数量?
- sql-server - 如何从多个时间范围中进行选择
- java - 如何将 HashSet 元素添加到 Arraylist 中的对象?
- java - 如何设置约束以限制单个节点上特定类型的关系数量
- nuget - 是否有可能知道什么是应用程序/客户端正在使用我的 nuget 包
- php - 将字符串转换为简单数组
- regex - 如果在字符串后面的某处找到特定单词,如何使用 Regex Negative Lookahead 使匹配失败
- python-3.x - 有没有办法我可以做一个自动警告和自动踢的东西
- apache-kafka - Kafka 通过多个分区和多个消费者线程提高吞吐量
- xamarin - 导航到注册玩家详细信息屏幕时,在 Xamarin.Forms 中引发对象引用错误