MCPcopy
hub / github.com/nextauthjs/next-auth / session.js

File session.js

apps/dev/pages/api/examples/session.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// This is an example of how to access a session from an API route
2import { getServerSession } from "next-auth/next"
3import { authOptions } from "/app/api/auth/[...nextauth]/route"
4

Callers

nothing calls this directly

Calls 1

getServerSessionFunction · 0.90

Tested by

no test coverage detected