Restore integrations upgrade attach call

This commit is contained in:
Ishaan Gupta 2026-06-10 22:25:15 +05:30
parent f0c79872f6
commit 318c85cfab
2 changed files with 1 additions and 7 deletions

View file

@ -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" }}
>
<QueryProvider>

View file

@ -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,