Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
2
import
{ getServerSession } from
"next-auth/next"
3
import
{ authOptions } from
"/app/api/auth/[...nextauth]/route"
4
Callers
nothing calls this directly
Calls
1
getServerSession
Function · 0.90
Tested by
no test coverage detected