Open
Description
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)
Trying to run this in a Colab file prints a URL that I need to go to authorise the app. On doing so I'm redirected to http://localhost:58787/?state=blah
which can't be reached and the notebook remains listening for a response.