Try to search your question here, if you can't find : Ask Any Question Now ?

Is it possible to disable session for an entire strategy

HomeCategory: stackoverflowIs it possible to disable session for an entire strategy
Avatarpragati asked 5 months ago

I use a short lived session for a few routes so I need to enable sessions within express/passport.

However, I am using the passport-http-bearer strategy for a lot of my routes.

Rather than put this on every route:

passport.authenticate('bearer', {session: false})

Is it possible to disable sessions for that entire strategy? I was hoping there was something in the passport-http-bearer options that would enable this but didn’t find anything when I looked at the docs/code.

1 Answers
Best Answer
AvatarAmit answered 5 months ago
Your Answer

6 + 20 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com