Add Bear to header check

This commit is contained in:
DingZQ
2025-06-22 23:20:34 +08:00
parent d53b5f0409
commit 4e29ac11c5

View File

@@ -60,7 +60,7 @@ async def global_auth(request: Request):
# return
# 验证
token = request.headers.get("Authorization")
if token != "567e33c876a2":
if token != "Bear 567e33c876a2":
raise HTTPException(status_code=401, detail="Invalid token")
# 全局依赖项