I am migrating my next-auth to the route handlers. It seems like they accept type of "NextApiRequest" but we have "NextRequest" in the route handler. Functionality wise it works perfecet, like the docs declare .
It's only a typescript error, I would expect NextAuth to accept request: NextRequest | NextApiRequest since the internal logic does a type check.
I am willing to contribute this change if one of the maintainers here will agree with that change :)
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Question 💬
I am migrating my next-auth to the route handlers. It seems like they accept type of "NextApiRequest" but we have "NextRequest" in the route handler. Functionality wise it works perfecet, like the docs declare . It's only a typescript error, I would expect NextAuth to accept
request: NextRequest | NextApiRequest
since the internal logic does a type check.I am willing to contribute this change if one of the maintainers here will agree with that change :)
How to reproduce ☕️
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR