From 5fa55fe1a28fddb6e5beb9e83724e02fc19febfa Mon Sep 17 00:00:00 2001 From: root Date: Tue, 24 Feb 2026 20:32:35 +0000 Subject: [PATCH] fix: add get_user_from_token alias for backward compatibility --- app/auth.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/auth.py b/app/auth.py index 1212451..b9722c6 100644 --- a/app/auth.py +++ b/app/auth.py @@ -165,6 +165,14 @@ def verify_token(token: str) -> Optional[str]: return None +# Alias for backward compatibility +get_user_from_token = verify_token + + +def get_current_user(credentials: HTTPAuthorizationCredentials) -> dict: + return None + + def get_current_user(credentials: HTTPAuthorizationCredentials) -> dict: """Get current user from JWT token""" token = credentials.credentials