From 78f0e9dd84269f149a4721e4791e6d13d6fac0aa Mon Sep 17 00:00:00 2001 From: aaron <> Date: Thu, 6 Mar 2025 14:25:25 +0800 Subject: [PATCH] update --- app/api/deps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/api/deps.py b/app/api/deps.py index d624a25..4b9ce84 100644 --- a/app/api/deps.py +++ b/app/api/deps.py @@ -10,6 +10,10 @@ async def get_current_user( access_token: Optional[str] = Cookie(None), db: Session = Depends(get_db) ) -> UserDB: + + print(f"authorization: {authorization}") + print(f"access_token: {access_token}") + # 优先使用Header中的token,其次使用Cookie中的token token = None if authorization and authorization.startswith("Bearer "):