Skip to content
Snippets Groups Projects
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
}