gpt4 book ai didi

laravel - 为什么我的 Google Drive Refresh Token 会在 7 天后过期?

转载 作者:行者123 更新时间:2023-12-04 17:20:49 27 4
gpt4 key购买 nike

我使用用于存储的 Google Drive API 实现了一个 Laravel 网络应用程序。
我用过这个教程 https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011 .
我注意到在我的应用程序中,“刷新 token ”每 7 天到期一次,我不知道为什么。我在 Google 开发者控制台中的应用程序处于“测试”模式。

最佳答案

我在这里找到了有关您的问题的回复:https://stackoverflow.com/a/65936387
在文档中 https://developers.google.com/identity/protocols/oauth2#expiration
有作者:

A Google Cloud Platform project with an OAuth consent screen configured for an external user type and a publishing status of "Testing" is issued a refresh token expiring in 7 days.


所以你必须尝试在“OAuth同意屏幕”中发布它。

关于laravel - 为什么我的 Google Drive Refresh Token 会在 7 天后过期?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66307450/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com