mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-09 12:16:36 +00:00
Fix small issues for test
This commit is contained in:
@@ -2,7 +2,7 @@ import LoginForm from "@app/components/LoginForm";
|
|||||||
import { verifySession } from "@app/lib/verifySession";
|
import { verifySession } from "@app/lib/verifySession";
|
||||||
import { redirect } from "next/navigation";
|
import { redirect } from "next/navigation";
|
||||||
|
|
||||||
export async function Page({
|
export default async function Page({
|
||||||
searchParams,
|
searchParams,
|
||||||
}: {
|
}: {
|
||||||
searchParams: { [key: string]: string | string[] | undefined };
|
searchParams: { [key: string]: string | string[] | undefined };
|
||||||
@@ -19,5 +19,3 @@ export async function Page({
|
|||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Page;
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ export async function verifySession() {
|
|||||||
const sessionId = cookies().get("session")?.value ?? null;
|
const sessionId = cookies().get("session")?.value ?? null;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await api.get("/user", {
|
await api.get("/user", {
|
||||||
headers: {
|
headers: {
|
||||||
Cookie: `session=${sessionId}`
|
Cookie: `session=${sessionId}`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user