Authentication with Socket.IO test failure due to new version of connect-mongo

Small PSA - a new version of connect-mongo came out today and the tests do not pass on version ^4.1.0 so for any camper who (like me) just grabbed the latest version number from to add it as a dependency - make sure to use v ^3.2.0 and it will pass.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36.

Challenge: Authentication with Socket.IO

Link to the challenge:


I’ve stumbled by the same issue, but as i found on the project mongo site, MongoConnect don’t return a function now, so current version can support this kind of code:

const MongoStore = require(‘connect-mongo’).default;
const URI = process.env.MONGO_URI;
const store = MongoStore.create({ mongoUrl: URI });

And it’s actually works normally this way

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.