curionoxgoogle 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:
...