Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

Enhance MongoDB authentication logic avoid deprecated Db.prototype.authenticate call. #972

Merged
merged 2 commits into from
Dec 22, 2017
Merged

Conversation

tiagosiebler
Copy link
Contributor

Db.prototype.authenticate is deprecated in the MongoDB module. Authentication is instead done via connection string, as mongodb docs advise:
http://mongodb.github.io/node-mongodb-native/3.0/tutorials/connect/authenticating/

Fixes #521 and that annoying deprecation warning on every launch.

Copy link
Owner

@DeviaVir DeviaVir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 awesome thanks for contributing

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants