library · inferred from evidence
@descope/nextjs-sdk
A library providing Descope session helpers for Next.js applications.
- 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
- authMiddleware rejects valid tokens: node-fetch cannot decode Brotli JWKS (ERR_STREAM_PREMATURE_CLOSE)
Fixed in @descope/node-sdk@2.8.0, which switched to the runtime's native fetch (undici) instead of node-fetch@2 and therefore decodes the Brotli JWKS response correctly; the nextjs-sdk pin was also lifted in PR #1419. Upgrade @descope/node-