mirror of
https://github.com/a-mayb3/Kanban_clone_backend.git
synced 2026-03-21 18:15:37 +01:00
transfered logout and added user-deletion
This commit is contained in:
parent
6285ebbd16
commit
192b5f9fc5
2 changed files with 57 additions and 6 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue