Signs the user out by clearing the session cookie and expiring the session.
(request: Request)
| 542 | |
| 543 | |
| 544 | async 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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…