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
pragati asked 1 week 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
Amit answered 1 week ago
Your Answer

10 + 12 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com