hiding websocket initalization behind authentication

This commit is contained in:
shcodenick
2025-04-30 15:05:57 +02:00
parent f7f3ae7cc9
commit 4c81b6ebc5
5 changed files with 66 additions and 50 deletions
+1 -1
View File
@@ -80,8 +80,8 @@ async def get_session_user(
auth_header = request.headers.get("Authorization")
auth_token = get_http_authorization_cred(auth_header)
token = auth_token.credentials
data = decode_token(token)
expires_at = data.get("exp")
if int(time.time()) > expires_at: