Skip to content
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.

Commit

Permalink
Merge pull request #498 from waprin/master
Browse files Browse the repository at this point in the history
Pop Oauth flow rather then get
  • Loading branch information
Jon Wayne Parrott committed Apr 11, 2016
2 parents 8f4d916 + dd33fcc commit bf9b78f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oauth2client/contrib/flask_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def requires_calendar():
def _get_flow_for_token(csrf_token):
"""Retrieves the flow instance associated with a given CSRF token from
the Flask session."""
flow_pickle = session.get(
flow_pickle = session.pop(
_FLOW_KEY.format(csrf_token), None)

if flow_pickle is None:
Expand Down

0 comments on commit bf9b78f

Please sign in to comment.