You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I first run this example and login, it works correctly - I can login and it reports my email address. If I refresh the page a few hours later, I get a TokenExpiredError.
I am using Chrome on a Mac, turned off all extensions, and allow all cookies.
Chrome: Version 98.0.4758.109 (Official Build) (x86_64)
MacOS: 12.2.1
Command:
FLASK_APP=google.py FLASK_ENV=development flask run
Traceback (most recent call last):
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 2091, in __call__
return self.wsgi_app(environ, start_response)
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 2076, in wsgi_app
response = self.handle_exception(e)
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/Users/chrisroat/flask-dance-google/google.py", line 16, in index
resp = google.get("/oauth2/v1/userinfo")
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/requests/sessions.py", line 542, in get
return self.request('GET', url, **kwargs)
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/flask_dance/consumer/requests.py", line 192, in request
return super().request(
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/requests_oauthlib/oauth2_session.py", line 483, in request
url, headers, data = self._client.add_token(
File "/Users/chrisroat/flask-dance-google/venv/lib/python3.9/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 217, in add_token
raise TokenExpiredError()
oauthlib.oauth2.rfc6749.errors.TokenExpiredError: (token_expired)
The text was updated successfully, but these errors were encountered:
When I first run this example and login, it works correctly - I can login and it reports my email address. If I refresh the page a few hours later, I get a TokenExpiredError.
I am using Chrome on a Mac, turned off all extensions, and allow all cookies.
Chrome: Version 98.0.4758.109 (Official Build) (x86_64)
MacOS: 12.2.1
Command:
`pip freeze` output
traceback
The text was updated successfully, but these errors were encountered: