【发布时间】:2022-01-24 12:17:09
【问题描述】:
我在一个 python 项目中有这个 settings.yaml,我将把它用于谷歌身份验证。
配置工作正常,但我有一个问题,因为它正在生成一个将在 1 小时后过期的令牌。
如何配置它,以便我可以将过期时间更改为更大的值?
client_config_backend: settings
client_config:
client_id: <client_id>
client_secret: <client_secret>
save_credentials: True
save_credentials_backend: file
save_credentials_file: credentials.json
get_refresh_token: True
oauth_scope:
- https://www.googleapis.com/auth/drive.file
- https://www.googleapis.com/auth/drive.install
【问题讨论】: