diff --git a/surfsense_web/app/public/[token]/page.tsx b/surfsense_web/app/public/[token]/page.tsx
index 530664ac6..10cd19732 100644
--- a/surfsense_web/app/public/[token]/page.tsx
+++ b/surfsense_web/app/public/[token]/page.tsx
@@ -1,11 +1,11 @@
-"use client";
-
-import { useParams } from "next/navigation";
import { PublicChatView } from "@/components/public-chat/public-chat-view";
-export default function PublicChatPage() {
- const params = useParams();
- const token = params.token as string;
+export default async function PublicChatPage({
+ params,
+}: {
+ params: Promise<{ token: string }>;
+}) {
+ const { token } = await params;
- return ;
+ return ;
}