Liking cljdoc? Tell your friends :D

porteiro-component.controllers.customer


->tokenclj

(->token map jwt-secret)

Inputs: [map :- #:s{Keyword s/Any} jwt-secret :- s/Str] Returns: s/Str

Inputs: [map :- #:s{Keyword s/Any} jwt-secret :- s/Str]
Returns: s/Str
sourceraw docstring

add-role!clj

(add-role! customer-id role database)

Inputs: [customer-id :- s/Uuid role :- s/Keyword database]

Inputs: [customer-id :- s/Uuid role :- s/Keyword database]
sourceraw docstring

authenticate-customer!clj

(authenticate-customer! {:keys [username password]}
                        {:keys [jwt-secret]}
                        database)

Inputs: [{:keys [username password]} :- models.customer/CustomerAuthentication {:keys [jwt-secret]} database] Returns: s/Str

Inputs: [{:keys [username password]} :- models.customer/CustomerAuthentication {:keys [jwt-secret]} database]
Returns: s/Str
sourceraw docstring

create-customer!clj

(create-customer! customer database)

Inputs: [customer :- models.customer/Customer database] Returns: models.customer/Customer

Inputs: [customer :- models.customer/Customer database]
Returns: models.customer/Customer
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close