(add-tokens-to-provider-data provider-data parsed-body)
Takes state-map a state and parsed response from http request. Adds access-token and refresh-token to state map.
Takes state-map a state and parsed response from http request. Adds access-token and refresh-token to state map.
(create-form-params provider-data)
Create query-params map to include in http body.
Create query-params map to include in http body.
(create-query-data provider-data)
Creates quert data for use in http post call when retreiving tokens.
Creates quert data for use in http post call when retreiving tokens.
(get-tokens provider-data)
Fetch tokens using crafted url
Fetch tokens using crafted url
(launch-token-refresher provider-data)
Start a timed event to try to refresh oauth-tokens sometime in the future.
Start a timed event to try to refresh oauth-tokens sometime in the future.
(parse-tokens! provider-data)
Parse access token and refresh-token from http response.
Parse access token and refresh-token from http response.
(token-refresher s provider-data)
Starts a call to get-tokens in s seconds, continues forever until cancelled.
Starts a call to get-tokens in s seconds, continues forever until cancelled.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close