feat: tambah dependensi 'jose' versi 5.9.2 pada package.json
refactor: rapikan identasi dan buat field 'expires' opsional di model UserSession pada schema prisma chore: bersihkan import tidak terpakai di route login dan register API
This commit is contained in:
19
src/app/dev/layout.tsx
Normal file
19
src/app/dev/layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { funCheckToken } from "@/app_modules/_global/fun/get";
|
||||
import { redirect } from "next/navigation";
|
||||
import { RouterAuth } from "../lib/router_hipmi/router_auth";
|
||||
import { CheckCookies_UiLayout } from "@/app_modules/check_cookies";
|
||||
|
||||
export default async function Layout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
// const cekCookies = await funCheckToken();
|
||||
// if (cekCookies === false) redirect(RouterAuth.login);
|
||||
|
||||
return (
|
||||
<>
|
||||
<CheckCookies_UiLayout>{children}</CheckCookies_UiLayout>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user