fix(handleTools.js): refactor loading of openAIApiKey to handle user_provided value (#603)

fix(PluginController.js): handle user_provided value in isPluginAuthenticated function
refactor(PluginService.js): remove commented out code
This commit is contained in:
Danny Avila 2023-07-07 13:59:59 -04:00 committed by GitHub
parent 9eefa3e24c
commit a64342f515
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 5 deletions

View file

@ -18,6 +18,9 @@ const isPluginAuthenticated = (plugin) => {
return plugin.authConfig.every((authFieldObj) => {
const envValue = process.env[authFieldObj.authField];
if (envValue === 'user_provided') {
return false;
}
return envValue && envValue.trim() !== '';
});
};