 
        stored-token
        {:db       db/default-db
-        :dispatch [:user-load {:access_token stored-token}]}
+        :dispatch [:store-token stored-token]}
 
        :else
        {:db db/default-db}))))

(re-frame/reg-event-fx
 :login-success
 (fn [_ [_ response]]
   {:dispatch-n [[:navigate :channel-list]
                 [:user-load response]]}))

(re-frame/reg-event-fx
 :user-load
 (fn
   [{:keys [db]} [_ response]]
   (let [token (:access_token response)]
     {:db              (assoc db :access-token token)
      :set-local-store ["access_token" token]
      :dispatch        [:channel-load]})))

(re-frame/reg-event-fx
 :logout

         auth-route?  (routes/auth-route? path)]
     (cond
       (and auth-route? logged-in?)
       {:db       db/default-db
        :dispatch [:login-success {:access_token stored-token}]}

       (and (not auth-route?) (not logged-in?))
       {:db       db/default-db
