Open LaKing opened 4 years ago
I think a good approach would be to check if req.auth exists already. If yes, a previous method already authenticated.
return function authMiddleware(req, res, next) { if (req.auth) return next(); ...
Good point, but would be a breaking change, so this will have to wait for v2
v2
I think a good approach would be to check if req.auth exists already. If yes, a previous method already authenticated.