fix: add get_user_from_token alias for backward compatibility

This commit is contained in:
root
2026-02-24 20:32:35 +00:00
parent 2482a1fe58
commit 5fa55fe1a2
+8
View File
@@ -165,6 +165,14 @@ def verify_token(token: str) -> Optional[str]:
return None 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: def get_current_user(credentials: HTTPAuthorizationCredentials) -> dict:
"""Get current user from JWT token""" """Get current user from JWT token"""
token = credentials.credentials token = credentials.credentials