     (debug "Starting server")
     (let [stop (http/run-server
                 (-> (routes component)
-                    (wrap-session-auth (:jwt component))
                     (wrap-user (:jwt component))
                     (wrap-restful-format :formats [:json-kw :edn :transit-json :transit-msgpack])
                     (wrap-defaults (-> api-defaults

    (db/delete-goal db user-id int-id)
    (response {})))

(defn routes [component]
  (compojure.core/routes
   (GET "/slack-callback" _ (partial slack-callback component))
   (POST "/slack" _ (partial slack component))
   (PUT "/time/:timestamp" _ (partial timestamp component))
   (POST "/token" _ (partial token component))

   (POST "/signup" _ (partial signup component))
   (GET "/healthcheck" _ (health-check component))))

(defn wrap-user [handler jwt]
  (fn [req]
    (let [token (get-in req [:headers "authorization"])
