I’m trying to do this lesson: Advanced Node and Express - Implement the Serialization of a Passport User
When I try to connect to my db, I get the error: Database error: Error: Username containing an unescaped at-sign
But my username should be escaping the at-sign. I use %40 where the @ sign normally would be, and yet I still get the error. I have not had this problem with prior projects, just this one.
My only guess is that things work differently since this project uses the MongoClient to connect whereas past projects I’ve done use Mongoose. But this is just my guess and I don’t know how to fix this issue. Could someone help.