MCPcopy
hub / github.com/shadcn-ui/taxonomy / getCurrentUser

Function getCurrentUser

lib/session.ts:5–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { authOptions } from "@/lib/auth"
4
5export async function getCurrentUser() {
6 const session = await getServerSession(authOptions)
7
8 return session?.user
9}

Callers 5

EditorPageFunction · 0.90
DashboardPageFunction · 0.90
DashboardLayoutFunction · 0.90
SettingsPageFunction · 0.90
BillingPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected