react-plaid-link icon indicating copy to clipboard operation
react-plaid-link copied to clipboard

How to handle reload of mobile web app page while in pop-up (tab) link flow

Open gjritter opened this issue 1 year ago • 0 comments

In mobile browsers, the plaid link flow opens a second tab where the user authenticates and authorizes plaid to use their bank account. When the OS is low on memory, background tabs may have their state evicted and cause the web app's page to reload when the user finishes the pop-up link flow and reactivates the web app's tab. As a result, the link flow doesn't call the onSuccess callback.

We've tried storing the original link token in local storage, and on page refresh if there's a link token in local storage, we use it when calling usePlaidLink; however, there's still no call to onSuccess in this case.

Is there any mechanism for recovering the user's progress in the pop-up link flow if the web page that called usePlaidLink reloads during the pop-up link flow, so that they don't need to go through the flow again?

gjritter avatar Apr 05 '24 19:04 gjritter