aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-17 11:36:17 -0500
committerFrederick Muriuki Muriithi2024-07-17 11:45:20 -0500
commit460feea9980664cc91926e5b3456a80dd9178703 (patch)
treed2ef3ae1d0113d7ce8c28fc7ae78afe2470a6b48 /gn2/wqflask
parent53ad9edda5c825a24bc91efe9d8b4d7bcc180e37 (diff)
downloadgenenetwork2-460feea9980664cc91926e5b3456a80dd9178703.tar.gz
Remove redundant import.
Diffstat (limited to 'gn2/wqflask')
-rw-r--r--gn2/wqflask/oauth2/checks.py3
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__)