mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-23 09:18:30 +00:00
9 lines
214 B
TypeScript
9 lines
214 B
TypeScript
import { getServerSession } from "next-auth/next"
|
|
|
|
import { authOptions } from "@/lib/auth"
|
|
|
|
export async function getCurrentUser() {
|
|
const session = await getServerSession(authOptions)
|
|
|
|
return session?.user
|
|
}
|