Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix: merge mock success data

yujunhui2f39bdddd9f7
diff --git a/apps/api/src/lib/withAuth.ts b/apps/api/src/lib/withAuth.ts
index a585fe0a6..bec3d4d1a 100644
--- a/apps/api/src/lib/withAuth.ts
+++ b/apps/api/src/lib/withAuth.ts
@@ -17,7 +17,7 @@ export function withAuth<T, U extends any[]>(
logger.warn("You're bypassing authentication");
warningCount++;
}
- return { success: true } as T;
+ return { success: true, ...(mockSuccess || {}) } as T;
} else {
return await originalFunction(...args);
}