beherbergung/backend/src/beherbergung/model/auth.clj
Johannes Lötzsch 7e8daca015 backend: template (from swlkup)
TODO:
* debug why http://localhost:4000/graphiql/index.html doesn't load
* adapt tests from swlkup
* adapt flake from swlkup and test build pipeline
2022-03-06 23:09:59 +01:00

13 lines
465 B
Clojure

(ns beherbergung.model.auth
(:require [clojure.spec.alpha :as s]
[specialist-server.type :as t]
[beherbergung.model.login :as login]))
(s/def ::jwt t/string)
(t/defobject Auth {:name "Auth" :kind t/input-object-kind :description "Authentication requires either a valid mail+password combination or a jwt obtained by an earlier login."}
:opt-un [::login/mail ::login/password
::jwt])
(s/def ::auth Auth)