How to use without sessions
Closed this issue · 1 comments
manuel-di-iorio commented
If I try to use:
passport.use(new RedditStrategy({
callbackURL: myCallback
clientID: clientID,
clientSecret: clientSecret,
state: "test"
}, etc..
passport-reddit throws the error Error: OAuth 2.0 authentication requires session support when using state. Did you forget to use express-session middleware?
I don't use sessions in my server and still would like to not use them, so I would like to manually verify the "state" random string. Is this possible ?
manuel-di-iorio commented
Solved by jaredhanson/passport-oauth2#71