diff --git a/src/api/v1/auth.py b/src/api/v1/auth.py index 334cc96..3ee1e00 100644 --- a/src/api/v1/auth.py +++ b/src/api/v1/auth.py @@ -42,3 +42,9 @@ async def login( @router.post(path="/refresh") async def refresh(user: ActiveUser, response: Response): print(response) + + +@router.post(path='/logout') +async def logout(response: Response): + response.delete_cookie(key="refresh_token") + return {'status': 'ok'} \ No newline at end of file