Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: OAuth 2.0 authentication requires session support when using state #50

Open
enbochen opened this issue Jul 10, 2017 · 1 comment

Comments

@enbochen
Copy link

When running the example, it comes up with this error:
Error: OAuth 2.0 authentication requires session support when using state. Did you forget to use express-session middleware?

@ghost
Copy link

ghost commented Jul 3, 2019

Hi aprilsnows,
Just install the express-session npm and placed into your server file.
// Linkedin needed express session
var session = require('express-session');
app.use(session({ secret: 'SECRET' }));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant