title: auto

des: auto
note:auto
This commit is contained in:
2023-10-03 09:45:21 +08:00
parent 7d1d29160f
commit aea3a1d38f

View File

@@ -6,13 +6,13 @@ import { redirect } from "next/navigation";
export default async function Page() {
const c = cookies().get("ssn");
const tkn = !c
? null
: JSON.parse(
await unsealData(c.value as string, {
password: process.env.PWD as string,
})
);
// const tkn = !c
// ? null
// : JSON.parse(
// await unsealData(c.value as string, {
// password: process.env.PWD as string,
// })
// );
if (!c?.value) return redirect("/dev/auth/login");