Skip to content

Commit

Permalink
manually expiring tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
graydenshand committed Oct 17, 2019
1 parent fef24c7 commit 949eda5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Expand Up @@ -68,7 +68,7 @@ def create_filter(whitelist):
def index():
print("on / {}".format(session))
if 'logged_in' in session.keys() and session['logged_in'] == True:
session['token']['expires_at'] = time() - 10
#session['token']['expires_at'] = time() - 10
google = OAuth2Session(client_id, token=session['token'])
if session['token']['expires_at'] < time()+10:
google = refresh_token()
Expand Down

0 comments on commit 949eda5

Please sign in to comment.