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