Support Next.js Version 13.0.1 #5701
Labels
enhancement
New feature or request
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Description 馃摀
Next.js 13.0.1 introduces the following breaking change: vercel/next.js#41526
TLTR: Before
request.cookies.get(<name>)
returned the cookie value. Now this invocation returns the following object:resulting in
jwt.getToken
to always returnnull
How to reproduce 鈽曪笍
Node.js Example (Works)
This code returns the correct token.
Edge Example (Doesn't work)
This code always returns
token: null
.System Info
13.0.1
Related Code
next-auth/packages/next-auth/src/core/lib/cookie.ts
Lines 143 to 151 in 30ad639
Contributing 馃檶馃徑
Yes, I am willing to help implement this feature in a PR
The text was updated successfully, but these errors were encountered: