get oauthSecrets from secrets manager

This commit is contained in:
Gabriel Rosa
2022-06-23 11:34:12 -03:00
parent b850596d64
commit 6abc2595cb
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -207,8 +207,8 @@ export class InputsClientService implements OnModuleInit {
switch (plugin) {
case 'hubspot':
return {
client_id: process.env.HUBSPOT_CLIENT_ID || '',
client_secret: process.env.HUBSPOT_CLIENT_SECRET || '',
client_id: this.oauthSecrets.hubspot.client_id || '',
client_secret: this.oauthSecrets.hubspot.client_secret || '',
};
}
return {};
+3 -3
View File
@@ -4,9 +4,9 @@ import {
} from '@aws-sdk/client-secrets-manager';
class OauthSecretsObject {
client_id: string;
client_secret: string;
redirect_uri: string;
client_id = '';
client_secret = '';
redirect_uri = '';
}
export class OauthScrets {