 
 (reg-event-fx
  :delete-slack
+ [interceptors]
  (fn [{:keys [db]} _]
    {:http-xhrio (authenticated-xhrio
                  {:method          :delete

                                          :on-failure      [:bad-goal-update-result]}
                                         (:auth-token db))}
       {}))))

            [tictag.schemas :as schemas]
            [goog.net.cookies]))

(def interceptors [(when ^boolean goog.DEBUG re-frame.core/debug)])

(defn authenticated-xhrio [m token]
  (merge m {:headers {"Authorization" token}}))

(reg-event-fx
 :login/submit-login
 [interceptors]
 (fn [{:keys [db]} [_ params]]
   ;; TODO edit DB to say we're pending login and add UI
   {:http-xhrio {:method          :post
