             [taoensso.timbre :as timbre]
             [environ.core :refer [env]]
             [chat.server.db :as db]
-            [chat.server.cache :refer [cache-set! cache-get cache-del! random-nonce]]
+            [chat.server.cache :refer [cache-set! cache-get cache-del!
+                                       random-nonce]]
             [chat.server.extensions :refer [redirect-uri webhook-uri
-                                            handle-thread-change handle-webhook handle-oauth-token
-                                            extension-config str->b64 b64->str edn-response]]
+                                            handle-thread-change handle-webhook
+                                            handle-oauth-token extension-config
+                                            str->b64 b64->str edn-response]]
             [chat.server.crypto :refer [hmac-verify]]))
 
 (def client-id (env :asana-client-id))

      (if (= 200 (:status resp))
        (let [{:strs [access_token refresh_token]} (json/read-str (:body resp))]
          (db/with-conn
            (db/save-extension-token! (ext :id) {:access-token access_token
                                                 :refresh-token (or refresh_token
                                                                    refresh-tok)})))
        (do (timbre/warnf "Bad response when exchanging token %s" (:body resp))
            nil)))))


                                     "redirect_uri" redirect-uri
                                     "code" code}})]
          (if (= 200 (:status resp))
            (let [{:strs [access_token refresh_token]} (-> resp :body
                                                           json/read-str)]
              (db/with-conn
                (db/save-extension-token! ext-id {:access-token access_token
                                                  :refresh-token refresh_token})))
