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,