First of all please do not close my Issue immediately when I create it..
My code link is https://github.com/Crazycoder122/async-middleware-express/blob/master/frontend/index.js
Now in
res.get('/',auth,(req,res,next) => { // Logic which runs if the user is authenticated })
Now the auth function is async function...
What to do now??
Thank You...
First of all please do not close my Issue immediately when I create it..
My code link is https://github.com/Crazycoder122/async-middleware-express/blob/master/frontend/index.js
Now in
res.get('/',auth,(req,res,next) => { // Logic which runs if the user is authenticated })Now the auth function is async function...
What to do now??
Thank You...