title: auto
des: auto note:auto
This commit is contained in:
@@ -6,13 +6,13 @@ import { redirect } from "next/navigation";
|
|||||||
|
|
||||||
export default async function Page() {
|
export default async function Page() {
|
||||||
const c = cookies().get("ssn");
|
const c = cookies().get("ssn");
|
||||||
const tkn = !c
|
// const tkn = !c
|
||||||
? null
|
// ? null
|
||||||
: JSON.parse(
|
// : JSON.parse(
|
||||||
await unsealData(c.value as string, {
|
// await unsealData(c.value as string, {
|
||||||
password: process.env.PWD as string,
|
// password: process.env.PWD as string,
|
||||||
})
|
// })
|
||||||
);
|
// );
|
||||||
|
|
||||||
if (!c?.value) return redirect("/dev/auth/login");
|
if (!c?.value) return redirect("/dev/auth/login");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user