From 800dcb6270f1b78989262b7e3dd27603ad35d13a Mon Sep 17 00:00:00 2001 From: Owen Schwartz Date: Sun, 6 Oct 2024 20:54:27 -0400 Subject: [PATCH] Fix small issues for test --- src/app/auth/login/page.tsx | 4 +--- src/lib/verifySession.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/auth/login/page.tsx b/src/app/auth/login/page.tsx index 55abf4ca..a6adba77 100644 --- a/src/app/auth/login/page.tsx +++ b/src/app/auth/login/page.tsx @@ -2,7 +2,7 @@ import LoginForm from "@app/components/LoginForm"; import { verifySession } from "@app/lib/verifySession"; import { redirect } from "next/navigation"; -export async function Page({ +export default async function Page({ searchParams, }: { searchParams: { [key: string]: string | string[] | undefined }; @@ -19,5 +19,3 @@ export async function Page({ ); } - -export default Page; diff --git a/src/lib/verifySession.ts b/src/lib/verifySession.ts index 010d1044..5cf86491 100644 --- a/src/lib/verifySession.ts +++ b/src/lib/verifySession.ts @@ -5,7 +5,7 @@ export async function verifySession() { const sessionId = cookies().get("session")?.value ?? null; try { - const res = await api.get("/user", { + await api.get("/user", { headers: { Cookie: `session=${sessionId}` }