From 318c85cfabc3c425bd8219af6203ee23a2d6c732 Mon Sep 17 00:00:00 2001 From: Ishaan Gupta Date: Wed, 10 Jun 2026 22:25:15 +0530 Subject: [PATCH] Restore integrations upgrade attach call --- apps/web/app/layout.tsx | 2 +- apps/web/components/integrations-view.tsx | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/apps/web/app/layout.tsx b/apps/web/app/layout.tsx index e47c2730..5de4eb43 100644 --- a/apps/web/app/layout.tsx +++ b/apps/web/app/layout.tsx @@ -92,7 +92,7 @@ export default function RootLayout({ process.env.NEXT_PUBLIC_BACKEND_URL ?? "https://api.supermemory.ai" } - useBetterAuth={true} + includeCredentials={true} headers={{ "X-App-Source": "nova" }} > diff --git a/apps/web/components/integrations-view.tsx b/apps/web/components/integrations-view.tsx index a9b8299d..57c6aeb7 100644 --- a/apps/web/components/integrations-view.tsx +++ b/apps/web/components/integrations-view.tsx @@ -2427,12 +2427,6 @@ export function IntegrationsView({ const handleUpgrade = async (planId?: unknown) => { const checkoutPlanId = planId === "api_max" ? "api_max" : "api_pro" - if (publicMode || !org) { - const loginUrl = new URL("/login", window.location.origin) - loginUrl.searchParams.set("redirect", window.location.href) - window.location.assign(loginUrl.toString()) - return - } try { const result = await autumn.attach({ planId: checkoutPlanId,