Tweak for poke

This commit is contained in:
2023-09-06 14:36:45 -07:00
parent 60668f1940
commit 039f430cd9
4 changed files with 17 additions and 8 deletions

View File

@@ -27,6 +27,7 @@
[clj-time.coerce :as coerce]
[clj-time.core :as t]
[clojure.string :as str]
[config.core :refer [env]]
[clojure.tools.logging :as log]
[clojure.walk :as walk]
[com.brunobonacci.mulog :as mu]
@@ -37,7 +38,8 @@
[datomic.api :as dc]
[unilog.context :as lc]
[yang.time :refer [time-it]]
[auto-ap.routes.auth :as auth])
[auto-ap.routes.auth :as auth]
[buddy.sign.jwt :as jwt])
(:import
(clojure.lang IPersistentMap)))
@@ -627,7 +629,9 @@
(let [users (->> (d-users/get-graphql args)
(map (fn [u]
(assoc u :impersonate_jwt
(auth/user->jwt u "FAKE_TOKEN")))))]
(jwt/sign (auth/user->jwt u "FAKE_TOKEN")
(:jwt-secret env)
{:alg :hs512})))))]
(->graphql users)))