mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 00:56:38 +02:00
✨ Forward external session id to backend
This commit is contained in:
parent
5eee1cdbf3
commit
00b4013385
4 changed files with 21 additions and 8 deletions
|
@ -141,6 +141,7 @@
|
|||
(::rpc/profile-id params)
|
||||
uuid/zero)
|
||||
|
||||
session-id (rreq/get-header request "x-external-session-id")
|
||||
props (-> (or (::replace-props resultm)
|
||||
(-> params
|
||||
(merge (::props resultm))
|
||||
|
@ -150,8 +151,10 @@
|
|||
(clean-props))
|
||||
|
||||
token-id (::actoken/id request)
|
||||
context (d/without-nils
|
||||
{:access-token-id (some-> token-id str)})]
|
||||
context (-> (::context resultm)
|
||||
(assoc :external-session-id session-id)
|
||||
(assoc :access-token-id (some-> token-id str))
|
||||
(d/without-nils))]
|
||||
|
||||
{::type (or (::type resultm)
|
||||
(::rpc/type cfg))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue