📌 📄 内容摘要:
curionox 在 google oauth2 认证求助 中发帖
老哥们,有了解google oauth2认证的么。因为我有需要认证多个google账号,所以想打开多个指定的浏览器,而不是用google默认打开的这个。
if not creds or not creds.valid:
if creds and creds.expired and creds.refresh_token:
creds.refresh(Request())
else:
flow = InstalledAppFlow.from_client_secrets_file(
“\credentials.json”, SCOPES
)
creds = flow.run_local_server(port=0)
# Save the credentials for the next run
with open(“token.json”, “w”) as token:
...
────────── 链接信息 ────────── 🔗 论坛链接: linux.do 📎 访问地址: https://linux.do/t/topic/254047/1 ─────────────────────────────
📢 来源:LINUX DO