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 3edd7f9 commit 4f730d9Copy full SHA for 4f730d9
src/connection_string.ts
@@ -417,12 +417,6 @@ export function parseOptions(
417
});
418
}
419
420
- if (isAws && mongoOptions.credentials.username && !mongoOptions.credentials.password) {
421
- throw new MongoMissingCredentialsError(
422
- `When using ${mongoOptions.credentials.mechanism} password must be set when a username is specified`
423
- );
424
- }
425
-
426
if (isAws) {
427
const { username, password } = mongoOptions.credentials;
428
if (username || password) {
0 commit comments