The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
revert bug
Steven Tey6d7f8d2dfbea
diff --git a/apps/web/lib/auth/index.ts b/apps/web/lib/auth/index.tsindex cb87e2c2b0..f0e3824af8 100644--- a/apps/web/lib/auth/index.ts+++ b/apps/web/lib/auth/index.ts@@ -443,7 +443,8 @@ interface WithSessionHandler {}): Promise<Response>;}-export const withSession = (handler: WithSessionHandler) => {+export const withSession =+ (handler: WithSessionHandler) =>async (req: Request, { params }: { params: Record<string, string> }) => {try {let session: Session | undefined;@@ -535,7 +536,6 @@ export const withSession = (handler: WithSessionHandler) => {return handleAndReturnErrorResponse(error);}};-};// Internal use only (for admin portal)interface WithAdminHandler {