From 79f21e738c9649b5eba7b2a887e649614a129940 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Tue, 14 Oct 2025 10:46:57 -0300 Subject: [PATCH] =?UTF-8?q?tickets:=20exigir=20sess=C3=A3o=20no=20servidor?= =?UTF-8?q?=20em=20/tickets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Chama requireAuthenticatedSession() no page.tsx para redirecionar anônimos a /login - Garante comportamento idêntico ao /dashboard quando acessado diretamente. --- src/app/tickets/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/tickets/page.tsx b/src/app/tickets/page.tsx index 3ff2888..63bd3a7 100644 --- a/src/app/tickets/page.tsx +++ b/src/app/tickets/page.tsx @@ -1,6 +1,8 @@ import { TicketsPageClient } from "./tickets-page-client" +import { requireAuthenticatedSession } from "@/lib/auth-server" -export default function TicketsPage() { +export default async function TicketsPage() { + await requireAuthenticatedSession() return }