diff options
author | Frederick Muriuki Muriithi | 2024-07-17 11:36:17 -0500 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:46 +0300 |
commit | fdf005f57e0dcbf8d2d1127f92977fe657c93d60 (patch) | |
tree | 4066b9b1b62397286ab4646bcffa2ab84693a7c2 /gn2/wqflask/oauth2 | |
parent | b2eaa6a66a3dc205382d06c81bfac4508bd415e7 (diff) | |
download | genenetwork2-fdf005f57e0dcbf8d2d1127f92977fe657c93d60.tar.gz |
Remove redundant import.
Diffstat (limited to 'gn2/wqflask/oauth2')
-rw-r--r-- | gn2/wqflask/oauth2/checks.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn2/wqflask/oauth2/checks.py b/gn2/wqflask/oauth2/checks.py index b8db6dc2..4a5a117f 100644 --- a/gn2/wqflask/oauth2/checks.py +++ b/gn2/wqflask/oauth2/checks.py @@ -6,7 +6,6 @@ from flask import flash, request, redirect from authlib.integrations.requests_client import OAuth2Session from . import session -from .session import clear_session_info from .client import ( oauth2_get, oauth2_client, @@ -33,7 +32,7 @@ def require_oauth2(func): if not user_details.get("error", False): return func(*args, **kwargs) - return clear_session_info(token) + return __clear_session__(token) return session.user_token().either(__clear_session__, __with_token__) |