transfered logout and added user-deletion

This commit is contained in:
Marta Borgia Leiva 2026-02-02 13:02:59 +01:00
parent 6285ebbd16
commit 192b5f9fc5
2 changed files with 57 additions and 6 deletions

View file

@ -85,11 +85,6 @@ def login(user_data: user_schemas.UserLogin, request: Request, response: Respons
}
}
@router.post("/logout")
def logout(response: Response):
"""Logout by clearing the JWT cookie"""
response.delete_cookie(key="access_token")
return {"message": "Logout successful"}
def verify_jwt_token(token: str):
"""Verify and decode a JWT token"""