Skip to content

Router level async middleware not working #4719

@KrishnenduDG

Description

@KrishnenduDG

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...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions