"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.choosePreferredCreds = choosePreferredCreds;
function choosePreferredCreds(context, credentials) {
const {
experienceName
} = context; // prefer the one that matches our experienceName
for (const credential of credentials) {
if (credential.name.includes(experienceName)) {
return credential;
}
} // else choose an arbitrary one
return credentials[0];
}
//# sourceMappingURL=../../__sourcemaps__/commands/client/selectUtils.js.map