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

Use express-session as middleware? #32

Open
Jehu opened this issue Dec 27, 2015 · 0 comments
Open

Use express-session as middleware? #32

Jehu opened this issue Dec 27, 2015 · 0 comments

Comments

@Jehu
Copy link

Jehu commented Dec 27, 2015

Would be nice if we could use express-session.
I've created a custom package to load the npm module 'express-session'.

My package code is like this:

ServerSession = Npm.require('express-session');
ServerSession({
  secret: "mySecret",
  resave: false,
  saveUninitialized: true
});

... and in the Package.onUse() an api.export('ServerSession'); call exists.

But as soon as i try to use Picker.middleware(ServerSession); in my code, i get the errors below:

W20151227-19:33:50.933(1)? (STDERR) Sun, 27 Dec 2015 18:33:50 GMT express-session deprecated undefined resave option; provide resave option at packages/meteorhacks_picker.js:138:16
W20151227-19:33:50.933(1)? (STDERR) Sun, 27 Dec 2015 18:33:50 GMT express-session deprecated undefined saveUninitialized option; provide saveUninitialized option at packages/meteorhacks_picker.js:138:16
W20151227-19:33:50.934(1)? (STDERR) Sun, 27 Dec 2015 18:33:50 GMT express-session deprecated req.secret; provide secret option at packages/meteorhacks_picker.js:138:16

Any ideas?

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