MCPcopy
hub / github.com/nextauthjs/next-auth / getServerSideProps

Function getServerSideProps

apps/dev/pages/server.js:40–46  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

38
39// Export the `session` prop to use sessions with Server Side Rendering
40export async function getServerSideProps(context) {
41 return {
42 props: {
43 session: await getServerSession(context.req, context.res, authOptions),
44 },
45 }
46}

Callers 1

PageFunction · 0.70

Calls 1

getServerSessionFunction · 0.90

Tested by

no test coverage detected