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
{{ message }}
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.
I'm trying to implement an oAuth2 handler in swagger security middleware with passport.
Expected behavior will be that oAuth handles the error when token is invalid. For this we will need response object in the handler..
prefered handler :
This is a duplicate of #203. I'll get it sorted, although I think you can still use the Passport API without the res object. Based on the documentation here, it seems the res is only used in your handler and not the Passport API:
app.get('/api/me',// This does not seem to use the `res` objectpassport.authenticate('bearer',{session: false}),// This is your actual 'handler' and of course it needs the `res` objectfunction(req,res){res.json(req.user);});
I'm trying to implement an oAuth2 handler in swagger security middleware with passport.
Expected behavior will be that oAuth handles the error when token is invalid. For this we will need response object in the handler..
prefered handler :
Missing response for this to work...
Keep in mind that i'm a beginner in swagger security, so maybe i'm missing some valuable insight on why the response object is not included..
Thanks for your help
The text was updated successfully, but these errors were encountered: