CrisOG
Explore posts from serversMiddleware errors are not being returned in response type
I have a user route using an auth middleware,
And this is the auth middleware,
But, the response type has only 2 possible status code.
This is a problem because I write some tests that expect this error code when accessing an auth protected route without auth.
2 replies