You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But, if we read the doc of restify, the callback will receive only 3 parameters : req, res and next.
(source: http://restify.com/#common-handlers-serveruse)
I have tested with 4 parameters but the function only receive 3 parameters...
In my application, I am using your module only for route that need to be protected, like this:
app.get('/example/:id',jwt({secret: mySecret}),(req,res)=>{/* the code of the route */});
Did I miss something?
The text was updated successfully, but these errors were encountered:
Hello,
In the doc of your plugin, it's written that we can add our custom logic to manage unauthorized access.
With this code:
But, if we read the doc of restify, the callback will receive only 3 parameters : req, res and next.
(source: http://restify.com/#common-handlers-serveruse)
I have tested with 4 parameters but the function only receive 3 parameters...
In my application, I am using your module only for route that need to be protected, like this:
Did I miss something?
The text was updated successfully, but these errors were encountered: