got accounts working

This commit is contained in:
2023-03-24 15:34:14 -07:00
2 changed files with 78 additions and 6 deletions

View File

@@ -20,9 +20,11 @@
:user/role "admin"
:user/name "TEST ADMIN"})
(defn user-token []
{:user "TEST USER"
:exp (time/plus (time/now) (time/days 1))
:user/role "user"
:user/name "TEST USER"
:user/clients [{:db/id 1}]})
(defn user-token
([] (user-token 1))
([client-id]
{:user "TEST USER"
:exp (time/plus (time/now) (time/days 1))
:user/role "user"
:user/name "TEST USER"
:user/clients [{:db/id client-id}]}))