The Widget flow begins when your user wants to connect one of their data sources to your app.
  1. The user visits your website and initiates a connection.
  2. Your backend calls /link/token/create to generate a Link token and passes that token to the SDK parameters used on your frontend.
  3. The Link token is used to display the Widget. After the user submits their credentials and establishes the connection, the Widget returns a temporary Public token via the onSuccess function, which must be sent to your backend.
  4. Your backend then calls /connection/public_token/exchange to convert the Public token into a permanent Access token for that connection.
  5. Store the Access token and use it to make product requests on behalf of your user.
You can visualize the flow here: Widget flow diagram