MCPcopy Index your code
hub / github.com/AgentOps-AI/agentops / auth_logout

Function auth_logout

app/api/agentops/auth/views.py:544–554  ·  view source on GitHub ↗

Signs the user out by clearing the session cookie and expiring the session.

(request: Request)

Source from the content-addressed store, hash-verified

542
543
544async def auth_logout(request: Request) -> StatusResponse:
545 """
546 Signs the user out by clearing the session cookie and expiring the session.
547 """
548 content = StatusResponse(message="User logged out successfully.")
549 response = JSONResponse(content=content.model_dump())
550
551 response.delete_cookie(key=AUTH_COOKIE_NAME, domain=_get_api_domain(), path="/")
552 request.state.session.expire()
553
554 return response

Callers

nothing calls this directly

Calls 4

_get_api_domainFunction · 0.85
StatusResponseClass · 0.70
model_dumpMethod · 0.45
expireMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…