Spaces:
Sleeping
Sleeping
Commit
·
5e372f6
1
Parent(s):
4b20e92
patch
Browse files
main.py
CHANGED
|
@@ -310,7 +310,7 @@ async def logout(user_id: str, token: str):
|
|
| 310 |
|
| 311 |
return {"message": "Session forcefully expired"}
|
| 312 |
|
| 313 |
-
@auth_router.get("/validate", response_model=
|
| 314 |
async def validate_token(user_id: str, token: str, user_agent: str = Header(...)):
|
| 315 |
"""
|
| 316 |
Route to validate a token based on user_id, token, and user agent.
|
|
|
|
| 310 |
|
| 311 |
return {"message": "Session forcefully expired"}
|
| 312 |
|
| 313 |
+
@auth_router.get("/validate", response_model=LoginResponse)
|
| 314 |
async def validate_token(user_id: str, token: str, user_agent: str = Header(...)):
|
| 315 |
"""
|
| 316 |
Route to validate a token based on user_id, token, and user agent.
|