Remove user session.
(self, user_id)
| 215 | return {"status": "ok", "session": session} |
| 216 | |
| 217 | def logout(self, user_id): |
| 218 | """Remove user session.""" |
| 219 | key = f"user:{user_id}" |
| 220 | if stash.exists("sessions", key): |
| 221 | stash.delete("sessions", key) |
| 222 | self._increment_counter() |
| 223 | return {"status": "logged_out", "user_id": user_id} |
| 224 | return {"status": "not_found", "user_id": user_id} |
| 225 | |
| 226 | def get_session(self, user_id): |
| 227 | """Get user session - visible from any worker.""" |
nothing calls this directly
no test coverage detected