-
Yusuf Akgül authoredYusuf Akgül authored
session.ts 217 B
import { getServerSession } from "next-auth/next"
import { authOptions } from "@/lib/auth"
export async function getCurrentUser() {
const session = await getServerSession(authOptions)
return session?.user
}