From acf9c25a72d1d2e92c38ecae386b5d1e6d2d5a69 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sun, 12 Jan 2025 20:51:27 +1100 Subject: [PATCH] Refactor Header component to remove authentication logic --- components/layout/header.tsx | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/components/layout/header.tsx b/components/layout/header.tsx index 21e078a..6fc5466 100644 --- a/components/layout/header.tsx +++ b/components/layout/header.tsx @@ -1,12 +1,8 @@ -import { logtoConfig } from "@/app/logto"; -import { getLogtoContext, signIn } from "@logto/next/server-actions"; import Image from "next/image"; import Link from "next/link"; import logo from "../../public/images/logo.png"; export async function Header() { - const { isAuthenticated } = await getLogtoContext(logtoConfig); - return (
);