Skip to content

Commit

Permalink
Merge pull request #26505 from WillAvatec/patch-2
Browse files Browse the repository at this point in the history
NodeJS/Authentication -  Update authentication_basics.md
  • Loading branch information
wise-king-sullyman authored Oct 16, 2023
2 parents 92787d2 + 12628be commit 15469b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodeJS/authentication/authentication_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const mongoose = require("mongoose");
const Schema = mongoose.Schema;

const mongoDb = "YOUR MONGO URL HERE";
mongoose.connect(mongoDb, { useUnifiedTopology: true, useNewUrlParser: true });
mongoose.connect(mongoDb);
const db = mongoose.connection;
db.on("error", console.error.bind(console, "mongo connection error"));

Expand Down

0 comments on commit 15469b6

Please sign in to comment.