소스 검색

im stupid

simo 2 일 전
부모
커밋
9597fc6f84
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/pages/api/game/index.ts

+ 4 - 0
src/pages/api/game/index.ts

@@ -12,6 +12,10 @@ export const POST: APIRoute = async ({ request }) => {
   await init();
 
   const currentUser = getUserFromRequest(request);
+
+  console.log(request.headers.get("cookie"));
+  console.log(currentUser);
+
   if (!currentUser) return json({ error: "Not authenticated" }, 401);
 
   const id = crypto.randomUUID().replace(/-/g, "").slice(0, 12);