You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
It seems it's not possible to use the middleware before calling the plugin function since it's the call of the plugin that define the middleware.
In fact I'm loading my schemas dynamically at runtime, but I specify middlewares to my server at init, is there a way to keep this logic and use the mongoose-auth middleware?
The text was updated successfully, but these errors were encountered:
Hi,
It seems it's not possible to use the middleware before calling the plugin function since it's the call of the plugin that define the middleware.
In fact I'm loading my schemas dynamically at runtime, but I specify middlewares to my server at init, is there a way to keep this logic and use the mongoose-auth middleware?
The text was updated successfully, but these errors were encountered: