Logout the current user.
(current_user: User = Depends(get_current_active_user))
| 177 | |
| 178 | @router.post("/logout") |
| 179 | async def logout(current_user: User = Depends(get_current_active_user)): |
| 180 | """Logout the current user.""" |
| 181 | # In a real app, you might want to blacklist the token |
| 182 | return {"message": "Successfully logged out"} |
nothing calls this directly
no outgoing calls
no test coverage detected