Skip to content

Conversation

@mjhasbach
Copy link

This PR makes rem Browserify-compatible. The old version of connect you were using exported like this:

module.exports = process.env.CONNECT_COV
  ? require('./lib-cov/connect')
  : require('./lib/connect');

./lib-cov/connect was a non-existent module, which caused Browserify errors.

I reviewed the rem source code, and adding the cookieParser and cookieSession middleware seemed to be the only things needed to make rem compatible with connect 3.3.4. I ran tests/oauth-restore.js and it worked.

…ddleware, because cookieParser and cookieSession are no longer methods of the connect object.
@TychosDrunkElk
Copy link

+1

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

Successfully merging this pull request may close these issues.

2 participants