Open miticdjd opened 1 month ago
next-auth middleware API is not compatible with new (more elastic) approach introduced in nemo. I will prepare an example and docs how to overcome this compatibility issues!
Yeah, I assumed that was the case. Thanks a lot in advance!
Hey @z4nr34l ,
First of all, thank you for this package. It is beneficial!
Describe the bug When I switched from next-easy-middlewares to new @rescale/nemo, I started having a problem with AuthJS v5. I am getting an error:
Error [TypeError]: Cannot use 'in' operator to search for 'headers' in undefined
.Before, I used the next-easy-middleware v1.1.6, now @rescale/Nemo v1.2.2.
To Reproduce Steps to reproduce the behavior: Packages: @rescale/nemo v1.1.6 next v14.2.5 authjs v5 node v20.15.1
middlewares.tsx
Expected behavior Auth middleware to work.
Additional context