feat(plaid-link): add Plaid Link UI and deployment updates#10
Merged
Conversation
Plaid Link Integration: - Add /api/link-token endpoint to generate Plaid Link tokens - Add /link-callback endpoint to handle public-to-access token exchange - Redesign setup.html with modern Plaid Link button UI - Keep fallback manual token entry for advanced users - Secure bank authentication flow: Click → Select Bank → Authenticate → Dashboard Deployment Updates: - Update render.yaml to use src.app_stateless (stateless architecture) - Add TOKEN_ENCRYPTION_KEY to required environment variables - Add FLASK_ENV=production for production settings - Simplify .env.example with focus on Plaid Link flow Benefits: - Users no longer need to manually copy/paste tokens - Plaid Link handles all bank selection & authentication - Secure by default with Plaid's bank-level encryption - Works with 12,000+ financial institutions - Ready to deploy to Render production Setup page now shows: - Primary: 🔐 Plaid Link button (recommended) - Secondary: Manual token entry (fallback) - Security messaging about data privacy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds Plaid Link integration for secure bank account authentication and updates deployment configuration for production.
Changes
Plaid Link Integration
New Endpoints:
/api/link-token- Generate Plaid Link tokens/link-callback- Handle public-to-access token exchangeUpdated Setup Page:
User Flow:
Deployment Updates
render.yamlto use stateless app (src.app_stateless)TOKEN_ENCRYPTION_KEYto required environment variablesFLASK_ENV=productionfor production.env.examplewith focus on Plaid LinkSecurity & UX Improvements
Testing
Deployment
Ready to deploy to Render production:
python3 -c "from cryptography.fernet import Fernet; print(Fernet.generate_key().decode())")Architecture
Next Steps