library · inferred from evidence
next/headers
Next.js library for accessing HTTP headers.
- Session not working in Next.js 15 (@descope/nextjs-sdk)
Until the fixed release, use the async getSession helper from @descope/nextjs-sdk/server as a workaround: await headers() from next/headers, build a request object carrying the x-descope-session header, and pass it to getSession(req). Desco