The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update route.ts
Steven Tey0d5c72402215
diff --git a/apps/web/app/api/me/route.ts b/apps/web/app/api/me/route.tsindex c673e8df8c..17b783128d 100644--- a/apps/web/app/api/me/route.ts+++ b/apps/web/app/api/me/route.ts@@ -1,9 +1,9 @@-import { withAuth } from "@/lib/auth";+import { withSession } from "@/lib/auth";import prisma from "@/lib/prisma";import { NextResponse } from "next/server";// GET /api/me - get the current user-export const GET = withAuth(async ({ session }) => {+export const GET = withSession(async ({ session }) => {const user = await prisma.user.findUnique({where: {id: session.user.id,