mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-03 17:49:09 +00:00
FEAT: passport mailchimp
This commit is contained in:
@@ -13,6 +13,7 @@ export class OauthSecrets {
|
||||
hubspot = new OauthSecretsObject();
|
||||
google = new OauthSecretsObject();
|
||||
mailchimp = new OauthSecretsObject();
|
||||
facebook = new OauthSecretsObject();
|
||||
}
|
||||
export async function getOauthSecrets() {
|
||||
const secrets = new OauthSecrets();
|
||||
@@ -25,7 +26,15 @@ export async function getOauthSecrets() {
|
||||
const res = await secretsManagerClient
|
||||
.send(getSecretComand)
|
||||
.catch(() => null);
|
||||
if (res) secrets[key] = JSON.parse(res.SecretString);
|
||||
if (res) {
|
||||
secrets[key] = JSON.parse(res.SecretString);
|
||||
} else {
|
||||
secrets[key] = {
|
||||
client_id: 'id',
|
||||
client_secret: 'id',
|
||||
redirect_uri: 'id',
|
||||
};
|
||||
}
|
||||
}
|
||||
return secrets;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user