So I have this custom middleware that tries to get the cookie from the client. This is the declaration:
function auth(req, res, next) {}
But to access the cookies from the request, I need to use another middleware i.e. cookieParser. So now I have no ideas how can I use that cookieParser in my custom auth Middleware. Any help will be greatly appreciated.