Spaces:
Sleeping
Sleeping
Update src/routers/auth.py
Browse files- src/routers/auth.py +1 -1
src/routers/auth.py
CHANGED
|
@@ -115,7 +115,7 @@ def login(login_data: LoginRequest, response: Response, session: Session = Depen
|
|
| 115 |
|
| 116 |
|
| 117 |
@router.post("/logout")
|
| 118 |
-
def logout(response: Response):
|
| 119 |
"""Logout user by clearing the access token cookie."""
|
| 120 |
# Clear the access_token cookie
|
| 121 |
response.set_cookie(
|
|
|
|
| 115 |
|
| 116 |
|
| 117 |
@router.post("/logout")
|
| 118 |
+
def logout(request: Request, response: Response, current_user: User = Depends(get_current_user)):
|
| 119 |
"""Logout user by clearing the access token cookie."""
|
| 120 |
# Clear the access_token cookie
|
| 121 |
response.set_cookie(
|