aws/aws-sigv4-auth-cassandra-nodejs-driver-plugin

getCredentialChainCreds always returns undefined

JoshRagem opened this issue · 1 comments

function getCredentialChainCreds() {
let chain = new AWS.CredentialProviderChain();
let result;
chain.resolve((err, c) => {
result = c;
});
return result;
};
this function will always return undefined because chain.resolve(...) is async and the callback will not run until after getCredentialChainCreds returns

With the recent PR I believe the issue is resolved.