fix: Organize Plaid env variables for development and sandbox envs (#480)

This commit is contained in:
Ahmed Bouhuolia
2024-06-03 20:50:02 +02:00
committed by GitHub
parent 7c06c8bb8a
commit 175bc243f3
10 changed files with 33 additions and 227 deletions

View File

@@ -70,10 +70,7 @@ export class PlaidClientWrapper {
baseOptions: {
headers: {
'PLAID-CLIENT-ID': config.plaid.clientId,
'PLAID-SECRET':
config.plaid.env === 'development'
? config.plaid.secretDevelopment
: config.plaid.secretSandbox,
'PLAID-SECRET': config.plaid.secret,
'Plaid-Version': '2020-09-14',
},
},