adds plaid reauth
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user