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

Commit

Permalink
Pop Oauth flow rather then get
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Prin committed Apr 11, 2016
1 parent 5085d14 commit dd33fcc
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 dd33fcc

Please sign in to comment.