mirror of
https://github.com/penpot/penpot.git
synced 2025-03-18 18:51:29 -05:00
Remove useless namespacing for persist auth data in storage.
The storage is already namespaced.
This commit is contained in:
parent
6273b05c51
commit
29e6ebdb83
3 changed files with 4 additions and 4 deletions
|
@ -28,7 +28,7 @@
|
|||
|
||||
rs/WatchEvent
|
||||
(-apply-watch [this state s]
|
||||
(swap! storage assoc :uxbox/auth data)
|
||||
(swap! storage assoc :auth data)
|
||||
(rx/of (udu/fetch-profile)
|
||||
(rt/navigate :dashboard/projects))))
|
||||
|
||||
|
@ -67,7 +67,7 @@
|
|||
(defrecord Logout []
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(swap! storage dissoc :uxbox/auth)
|
||||
(swap! storage dissoc :auth)
|
||||
(merge state (dissoc (st/initial-state) :route)))
|
||||
|
||||
rs/WatchEvent
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
(defn- auth-headers
|
||||
[]
|
||||
(when-let [auth (:uxbox/auth storage)]
|
||||
(when-let [auth (:auth storage)]
|
||||
{"authorization" (str "Token " (:token auth "no-token"))}))
|
||||
|
||||
(defn- encode-query
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
:images-order :name
|
||||
:images-filter ""}
|
||||
:route nil
|
||||
:auth (:uxbox/auth storage nil)
|
||||
:auth (:auth storage nil)
|
||||
:clipboard #queue []
|
||||
:undo {}
|
||||
:profile nil
|
||||
|
|
Loading…
Add table
Reference in a new issue