BackendStack21 / fast-gateway

Fast-gateway is an easy to use Node.js API gateway framework built to handle large scale API traffic with great performance and scalability. Written with JavaScript, it is a framework for the masses!
MIT License
311 stars 35 forks source link

Implementing Express-JWT #45

Closed junaidy-johm closed 4 years ago

junaidy-johm commented 4 years ago

I Confuse about express jwt create token in middleware

prefix: '/admin',
    target: 'http://localhost:3001',
    middlewares: [
      require('express-jwt')({
        secret: 'shhhhhhared-secret'
      })
    ]

and after running, no authorization was not found

how should i add the token in middlewares?