mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
🐛 Clear authentication cookies when logged out
This commit is contained in:
parent
03242e1a9c
commit
af74a1575b
@ -119,8 +119,14 @@
|
||||
|
||||
(defn- clear-cookies
|
||||
[response]
|
||||
(assoc response :cookies {token-cookie-name {:value "" :max-age -1}
|
||||
authenticated-cookie-name {:value "" :max-age -1}}))
|
||||
(let [authenticated-cookie-domain (cfg/get :authenticated-cookie-domain)]
|
||||
(assoc response :cookies {token-cookie-name {:path "/"
|
||||
:value ""
|
||||
:max-age -1}
|
||||
authenticated-cookie-name {:domain authenticated-cookie-domain
|
||||
:path "/"
|
||||
:value ""
|
||||
:max-age -1}})))
|
||||
|
||||
(defn- middleware
|
||||
[events-ch store handler]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user