06/05 Optimize app: fix Plaid link

This commit is contained in:
2026-06-05 10:00:33 -04:00
parent fbfb7ab33c
commit 9f100af491
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -33,6 +33,7 @@ class Config:
# Plaid (sandbox / development / production)
PLAID_CLIENT_ID = os.environ.get('PLAID_CLIENT_ID', '')
PLAID_SECRET = os.environ.get('PLAID_SECRET', '')
# Valid values: sandbox, production (Plaid retired the 'development' environment)
PLAID_ENV = os.environ.get('PLAID_ENV', 'sandbox')
# Schwab Developer API (OAuth 2.0)
+4 -3
View File
@@ -25,9 +25,10 @@ from flask import current_app
log = logging.getLogger(__name__)
PLAID_HOSTS = {
'sandbox': 'https://sandbox.plaid.com',
'development': 'https://development.plaid.com',
'production': 'https://production.plaid.com',
'sandbox': 'https://sandbox.plaid.com',
'production': 'https://production.plaid.com',
# 'development' was sunset by Plaid — map it to production so old configs don't break
'development': 'https://production.plaid.com',
}
# Plaid top-level category → PFM category name