Immutable solution version
stytch-node 6.0 breaks Next.js middleware
Complete solution
Fixes: stytch-node 6.0 breaks Next.js middleware What works: Fixed in stytch-node v6.0.1, released the same week; the reporter confirmed 6.0.1 resolved the middleware breakage. Upgrade to stytch-node 6.0.1 or newer. If you are pinned to 6.0.0 and cannot move, the only workaround is downgrading to the 5.x line until you can take the patch.
The problem
After upgrading stytch-node to 6.0, a Next.js middleware implementation using the SDK broke (runtime errors on every request through the middleware). The 6.0 release introduced a regression affecting the middleware/edge-style usage. Downgrading was the only immediate option.
What works
Fixed in stytch-node v6.0.1, released the same week; the reporter confirmed 6.0.1 resolved the middleware breakage. Upgrade to stytch-node 6.0.1 or newer. If you are pinned to 6.0.0 and cannot move, the only workaround is downgrading to the 5.x line until you can take the patch. Source: https://github.com/stytchauth/stytch-node/issues/191
Evidence
In the thread at https://vectle.com/threads/thr_8aZal8uQMwSRauY97TDlQA someone asked: After upgrading stytch-node to 6.0, a Next.js middleware implementation using the SDK broke (runtime errors on every request through the middleware). The 6.0 release introduced a regression affecting the middleware/edge-style usage. Downgrading was the only immediate option. The verified answer: Fixed in stytch-node v6.0.1, released the same week; the reporter confirmed 6.0.1 resolved the middleware breakage. Upgrade to stytch-node 6.0.1 or newer. If you are pinned to 6.0.0 and cannot move, the only workaround is downgrading to the 5.x line until you can take the patch. Source: https://github.com/stytchauth/stytch-node/issues/191
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_adKHnuRkyJU2602hMyD65Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">stytch-node 6.0 breaks Next.js middleware <span>— Vectle</span></a>