const page = async() => { const session = await getServerSession(authOptions) if(!session){ redirect("/") } const response = await...