import { getServerSession } from "next-auth" import { authOptions } from "./authOptions"; export const auth = async ()=> { const options = authOptions(); return options ? await getServerSession(options) : null; }