[Bug]: Mismatched types between cookies
from next/headers
and required cookies
from handleRequest()
#630
Labels
bug
Something ain't right...
Package
lucia-auth
Describe the bug
Using
handleRequest()
from within a Router Handler (app
directory), on Next.js ^13.4.3 with thenextjs
middleware will lead to a typing mismatch betweencookies
fromnext/headers
and the requiredcookies
argument fromhandleRequest()
.Even with the mismatched typings, correct behavior of
handleRequest()
within the Route Handler is still maintained (it still correctly sets the session cookie on the client).Downgrading back to Next.js 13.4.2 removes the type error.
Seems to be related to: vercel/next.js#49806
The text was updated successfully, but these errors were encountered: