Hello Friends!
Everything was OK until I arrived to this challenge:
Advanced Node and Express - Authentication with Socket.IO
Here when I added below code:
const MongoStore = require('connect-mongo')(session);
const URI = process.env.MONGO_URI;
const store = new MongoStore({ url: URI });
I received this error:
/home/runner/boilerplate-advancednode/node_modules/mongodb/lib/operations/db_ops.js:344
throw MongoError.create({
^
MongoError: database names cannot contain the character ‘.’
at Function.create (/home/runner/boilerplate-advancednode/node_modules/mongodb/lib/core/error.js:57:12)
it seems it’s a problem about “MongoStore” but my connection worked very well before using this “connect-mongo”
you can check out the project up to this point here.
I searched a lot everywhere to find a solution but I still couldn’t solve this problem.
I hope you can help me
Thank You
Challenge: Authentication with Socket.IO
Link to the challenge:
https://www.freecodecamp.org/learn/quality-assurance/advanced-node-and-express/authentication-with-socket-io
