Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions src/backend/base/langflow/api/v1/login.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,27 @@

@router.post("/logout")
async def logout(response: Response):
response.delete_cookie("refresh_token_lf")
response.delete_cookie("access_token_lf")
response.delete_cookie("apikey_tkn_lflw")
auth_settings = get_settings_service().auth_settings

Check failure on line 164 in src/backend/base/langflow/api/v1/login.py

View workflow job for this annotation

GitHub Actions / Ruff Style Check (3.13)

Ruff (W293)

src/backend/base/langflow/api/v1/login.py:164:1: W293 Blank line contains whitespace
Comment thread
iliakrupin marked this conversation as resolved.
Outdated
response.delete_cookie(
"refresh_token_lf",
httponly=auth_settings.REFRESH_HTTPONLY,
samesite=auth_settings.REFRESH_SAME_SITE,
secure=auth_settings.REFRESH_SECURE,
domain=auth_settings.COOKIE_DOMAIN,
)
response.delete_cookie(
"access_token_lf",
httponly=auth_settings.ACCESS_HTTPONLY,
samesite=auth_settings.ACCESS_SAME_SITE,
secure=auth_settings.ACCESS_SECURE,
domain=auth_settings.COOKIE_DOMAIN,
)
response.delete_cookie(
"apikey_tkn_lflw",
httponly=auth_settings.ACCESS_HTTPONLY,
samesite=auth_settings.ACCESS_SAME_SITE,
secure=auth_settings.ACCESS_SECURE,
domain=auth_settings.COOKIE_DOMAIN,
)
return {"message": "Logout successful"}
Loading