adds plaid reauth

This commit is contained in:
Bryce
2023-08-20 15:40:22 -07:00
parent ecc31f3680
commit 3597a5004d
4 changed files with 48 additions and 9 deletions

View File

@@ -26,6 +26,22 @@
:body
:link_token))
(defn get-relink-token [client-code access-token]
(-> (client/post (str base-url "/link/token/create")
{:as :json
:headers {"Content-Type" "application/json"}
:body (json/write-str {"client_id" client-id
"secret" secret-key
"client_name" "Integreat Consulting"
"access_token" access-token
"country_codes" ["US"]
"language" "en"
"user" {"client_user_id" client-code}})})
:body
:link_token))
(defn exchange-public-token [public-token _]
(-> (client/post (str base-url "/item/public_token/exchange")
{:as :json