mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 20:14:08 +00: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:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user