feat
Deskripsi: - Create validasi - Create register - create global prisma, color tune,dan global state
This commit is contained in:
@@ -1,8 +1,24 @@
|
||||
import { HomeView } from "@/app_modules/home";
|
||||
import { cookies } from "next/headers";
|
||||
import { unsealData } from "iron-session";
|
||||
import _ from "lodash";
|
||||
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,
|
||||
})
|
||||
);
|
||||
|
||||
if (!c?.value) return redirect("/dev/auth/login");
|
||||
|
||||
export default function Page() {
|
||||
return (
|
||||
<>
|
||||
{/* {JSON.stringify(tkn)} */}
|
||||
<HomeView />
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user