Refactoring
This commit is contained in:
@@ -2,11 +2,9 @@
|
||||
import { cookies } from "next/headers";
|
||||
|
||||
import LoginForm from "@/components/client/admin/loginForm";
|
||||
import AdminPanel from "@/components/server/admin/adminPanel";
|
||||
import ClientAuthHandler from "@/components/client/admin/clientAuthHandler";
|
||||
|
||||
import { serverValidateSessionCookie } from "@/app/lib/actions/actions";
|
||||
import { constructAPIUrl } from "@/util/Utils";
|
||||
import { ReactNode } from "react";
|
||||
import { AuthContext, AuthProps } from "@/providers/providers";
|
||||
|
||||
@@ -21,7 +19,7 @@ interface Props {
|
||||
export default async function AuthHandler(props: Props) {
|
||||
const protoKoek = await cookies().get('auth')?.value;
|
||||
const koek = decodeURIComponent(protoKoek ? protoKoek: "");
|
||||
console.log("koekje:" + koek)
|
||||
// console.log("koekje:" + koek)
|
||||
let p:AuthProps = {
|
||||
};
|
||||
if(koek){
|
||||
|
||||
Reference in New Issue
Block a user