admin / Synapse-Sonar
publicAttack Surface Simulation
Synapse-Sonar / synapse-sonar / app / (app) / agents / page.tsx
490 B · main
1 2 3 4 5 6 7 8 9 10 11 12 13 | import { redirect } from "next/navigation"; import { getServerSession } from "next-auth"; import { authOptions } from "@/lib/authOptions"; import AgentsDownload from "@/components/AgentsDownload"; export const dynamic = "force-dynamic"; export default async function Page() { // Agents deal with ingest credentials — Tenant Admins only. const session = await getServerSession(authOptions); if (session?.user?.role !== "TENANT_ADMIN") redirect("/"); return <AgentsDownload />; } |