Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

logout race condition fix (#1895)

Mike Fortmanec4b11f0b57b
diff --git a/frontend/components/user-nav.tsx b/frontend/components/user-nav.tsx
index ce3f7ee99..539b8c5e4 100644
--- a/frontend/components/user-nav.tsx
+++ b/frontend/components/user-nav.tsx
@@ -132,8 +132,12 @@ export function UserNav() {
<button
type="button"
onClick={async () => {
+ if (isCloudBrand) {
+ fetch("/api/auth/logout", { method: "POST" });
+ window.location.href = "/logout";
+ return;
+ }
await logout();
- if (isCloudBrand) window.location.href = "/logout";
}}
className="flex items-center hover:bg-muted w-full h-9 px-3"
>