mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-25 08:09:38 +02:00
Lazy load Plaid link tokens, fix link issues on broadcast (#2302)
* Lazy load Plaid link tokens, fix link issues on broadcast * Fix alert styles
This commit is contained in:
parent
c701755b02
commit
d21e385962
19 changed files with 155 additions and 123 deletions
|
@ -28,6 +28,14 @@ class Provider::PlaidSandbox < Provider::Plaid
|
|||
)
|
||||
end
|
||||
|
||||
def reset_login(item)
|
||||
client.sandbox_item_reset_login(
|
||||
Plaid::SandboxItemResetLoginRequest.new(
|
||||
access_token: item.access_token
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
private
|
||||
def create_client
|
||||
raise "Plaid sandbox is not supported in production" if Rails.env.production?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue