MCPcopy
hub / github.com/mongodb/node-mongodb-native / provider

Function provider

test/integration/auth/mongodb_aws.prose.test.ts:35–38  ·  test/integration/auth/mongodb_aws.prose.test.ts::provider
()

Source from the content-addressed store, hash-verified

33 it(class="st">'authenticates with a user provided credentials provider', async function () {
34 const credentialProvider = AWSSDKCredentialProvider.awsSDK;
35 const provider = async () => {
36 providerCount++;
37 return await credentialProvider.fromNodeProviderChain().apply();
38 };
39 client = this.configuration.newClient(process.env.MONGODB_URI, {
40 authMechanismProperties: {
41 AWS_CREDENTIAL_PROVIDER: provider

Callers

nothing calls this directly

Calls 1

applyMethod · 0.80

Tested by

no test coverage detected