mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-18 08:18:43 +02:00
Fix small issues for test
This commit is contained in:
parent
50b2519bb8
commit
800dcb6270
2 changed files with 2 additions and 4 deletions
|
@ -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}`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue