We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9f9d5e commit 9110a45Copy full SHA for 9110a45
lib/core/auth/x509.js
@@ -26,7 +26,7 @@ class X509 extends AuthProvider {
26
function x509AuthenticateCommand(credentials) {
27
const command = { authenticate: 1, mechanism: 'MONGODB-X509' };
28
if (credentials.username) {
29
- Object.apply(command, { user: credentials.username });
+ Object.assign(command, { user: credentials.username });
30
}
31
32
return command;
0 commit comments