@natedogg, I don’t want to hijack your Qoins thread, so I figured it would be better to start a new one about connecting to Plaid. I am attempting the Simple Integration as outlined in the Plaid Quickstart Guide
I have included the following tags in an html element, but I am getting an error:
<form id="some-id" method="POST" action="/plaid-auth"></form>
<script
src="https://cdn.plaid.com/link/stable/link-initialize.js"
data-client-name="MY APP NAME"
data-form-id="some-id"
data-key="b54e....................."
data-product="auth"
data-env="tartan">
</script>
[details=Returns an Error]Oh no!
We’re having some temporary technical difficulties right now. We’re working on the problem as fast as we can!
In the meantime, try refreshing the page or hitting “back” on your browser just in case things are working again…
We’re really sorry![/details]
From the Plaid guide:
In the example above, the form some-id had action=“/authenticate”. So we’ll add a /authenticate route to our server side code that expects a POST request with a field named public_token in the request body. We’ll then use that public_token along with our private client_id and secret to retrieve a Plaid access_token (via the /exchange_token endpoint). This access_token should be saved in a database and used to retrieve account and transaction data.
I am confused by their use of “we”. I assume this means me? Weird.
Anyway, because completion of the Plaid form redirects to myapp.bubbleapps.io/authenticate I assume I need to expose an API endpoint (with the same name as the form’s action=“/authenticate”), with a text parameter of “public_token”. I’ll then use this to trigger an API connector to exchange this for an access token.
First, how do I resolve the error listed above?
Second, What is the best way to save this access token? (since it is specific to my app, not each user, correct?)