(has-role? user role)
Returns true if the user
has the role
.
Returns true if the `user` has the `role`.
(is-authenticated user)
(wrap-authentication handler {:keys [db jwt]})
Wrap handler
with authentication middleware.
Wrap `handler` with authentication middleware.
(wrap-jwt-token handler jwt)
Wrap handler
with JWT authentication middleware.
Wrap `handler` with JWT authentication middleware.
(wrap-roles handler db)
Wrap handler
with middleware that loads the roles of the current user.
Wrap `handler` with middleware that loads the roles of the current user.
(wrap-user handler db)
Wrap handler
with middleware that loads the current user.
Wrap `handler` with middleware that loads the current user.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close