Closed omerfdmrl closed 1 year ago
Hi. I want to check if authenticated in new middleware like that;
new-plugin.js
module.exports = async(req, res, next) => { if (req.user) { ... } next(); };
In app.js I'm using right before then v1 api routes. Auth middleware calling after that middleware. How can I fix that?
v1 api routes
Auth
Hi Ömer, please may you describe more detailed? Please, move your question to discussion and do not create question as issue.
Hi. I want to check if authenticated in new middleware like that;
new-plugin.js
In app.js I'm using right before then
v1 api routes
.Auth
middleware calling after that middleware. How can I fix that?