mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Enhance Plaid connection management with re-authentication and error handling (#1854)
* Enhance Plaid connection management with re-authentication and error handling - Add support for Plaid item status tracking (good/requires_update) - Implement re-authentication flow for Plaid connections - Handle connection errors and provide user-friendly reconnection options - Update Plaid link token generation to support item updates - Add localization for new connection management states * Remove redundant 'reconnect' localization for Plaid items
This commit is contained in:
parent
08a2d35308
commit
f1f2e103ce
11 changed files with 156 additions and 19 deletions
9
app/helpers/plaid_helper.rb
Normal file
9
app/helpers/plaid_helper.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
module PlaidHelper
|
||||
def plaid_webhooks_url(region = :us)
|
||||
if Rails.env.production?
|
||||
region.to_sym == :eu ? webhooks_plaid_eu_url : webhooks_plaid_url
|
||||
else
|
||||
ENV.fetch("DEV_WEBHOOKS_URL", root_url.chomp("/")) + "/webhooks/plaid#{region.to_sym == :eu ? '_eu' : ''}"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue