Describe the bug
Recently, I saw this package and found it interesting that it allows assigning multiple middlewares to a single record. However, when trying to use the middleware from the "next-auth/middleware" package called withAuth, the page throws an error related to createMiddleware. (Sorry for my english)
To Reproduce
Steps to reproduce the behavior:
Go to 'middleware.ts'
Follow a basic example to apply the package
Place the withAuth in the api route.
See error
Expected behavior
Redirect unauthorized users
Screenshots
Desktop (please complete the following information):
OS: Ubuntu 22.04
Browser: Brave v1.66.118
Version: It is not clear if it is the version of the package or the browser
Describe the bug Recently, I saw this package and found it interesting that it allows assigning multiple middlewares to a single record. However, when trying to use the middleware from the "next-auth/middleware" package called withAuth, the page throws an error related to createMiddleware. (Sorry for my english)
To Reproduce Steps to reproduce the behavior:
Expected behavior Redirect unauthorized users
Screenshots![image](https://github.com/z4nr34l/next-easy-middlewares/assets/48423877/c7fd11f4-4474-4929-aef5-eafb2ed04ec3)
Desktop (please complete the following information):