Skip to content

Commit ac8f7cc

Browse files
committed
fix: more mech properties type safety
1 parent af4860e commit ac8f7cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cmap/auth/mongo_credentials.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Resolves the default auth mechanism according to
2+
// Resolves the default auth mechanism according to
23
import type { Document } from '../../bson';
34
import {
45
MongoAPIError,
@@ -31,7 +32,7 @@ function getDefaultAuthMechanism(hello?: Document): AuthMechanism {
3132
return AuthMechanism.MONGODB_CR;
3233
}
3334

34-
const ALLOWED_PROVIDER_NAMES = ['aws', 'azure'];
35+
const ALLOWED_PROVIDER_NAMES: AuthMechanismProperties['PROVIDER_NAME'][] = ['aws', 'azure'];
3536
const ALLOWED_HOSTS_ERROR = 'Auth mechanism property ALLOWED_HOSTS must be an array of strings.';
3637

3738
/** @internal */

0 commit comments

Comments
 (0)