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 af4860e commit ac8f7ccCopy full SHA for ac8f7cc
src/cmap/auth/mongo_credentials.ts
@@ -1,4 +1,5 @@
1
// Resolves the default auth mechanism according to
2
+// Resolves the default auth mechanism according to
3
import type { Document } from '../../bson';
4
import {
5
MongoAPIError,
@@ -31,7 +32,7 @@ function getDefaultAuthMechanism(hello?: Document): AuthMechanism {
31
32
return AuthMechanism.MONGODB_CR;
33
}
34
-const ALLOWED_PROVIDER_NAMES = ['aws', 'azure'];
35
+const ALLOWED_PROVIDER_NAMES: AuthMechanismProperties['PROVIDER_NAME'][] = ['aws', 'azure'];
36
const ALLOWED_HOSTS_ERROR = 'Auth mechanism property ALLOWED_HOSTS must be an array of strings.';
37
38
/** @internal */
0 commit comments