aboutsummaryrefslogtreecommitdiff
path: root/uploader/session.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-07-29 13:19:03 -0500
committerFrederick Muriuki Muriithi2024-08-05 09:52:17 -0500
commit889ff3116c8e412bb8bf969bd9484269ee716cb0 (patch)
treedd16324b7bc6b135dc60bfb17ecdcefeeb713bb3 /uploader/session.py
parent92d0d0c387fd9d41c8371fcef7d3bd5beacdc2ac (diff)
downloadgn-uploader-889ff3116c8e412bb8bf969bd9484269ee716cb0.tar.gz
Enable logout.
Diffstat (limited to 'uploader/session.py')
-rw-r--r--uploader/session.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/uploader/session.py b/uploader/session.py
index 4706860..8b72bce 100644
--- a/uploader/session.py
+++ b/uploader/session.py
@@ -82,6 +82,9 @@ def set_user_details(userdets: UserDetails) -> SessionInfo:
"""Set the user details information"""
return save_session_info({**session_info(), "user": userdets})#type: ignore[misc]
+def user_details() -> UserDetails:
+ """Retrieve user details."""
+ return session_info()["user"]
def user_token() -> Either:
"""Retrieve the user token."""