Skip to content

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

Python

fix: OAuth connector callback redirect fix (#2054) (#2097)

Edwin Joseac4b331a22c2
diff --git a/frontend/app/auth/callback/page.tsx b/frontend/app/auth/callback/page.tsx
index 4b7445ac7..8a5bc055f 100644
--- a/frontend/app/auth/callback/page.tsx
+++ b/frontend/app/auth/callback/page.tsx
@@ -16,6 +16,7 @@ import {
import { useAuth } from "@/contexts/auth-context";
import { decodeBase64 } from "@/lib/utils";
+// remove from localStorage any keys related to the OAuth flow
function cleanupOAuthStorage() {
localStorage.removeItem("connecting_connector_id");
localStorage.removeItem("connecting_connector_type");