Liking cljdoc? Tell your friends :D

burningswell.api.middleware.authentication


has-role?clj

(has-role? user role)

Returns true if the user has the role.

Returns true if the `user` has the `role`.
raw docstring

is-authenticatedclj

(is-authenticated user)

wrap-authenticationclj

(wrap-authentication handler {:keys [db jwt]})

Wrap handler with authentication middleware.

Wrap `handler` with authentication middleware.
raw docstring

wrap-jwt-tokenclj

(wrap-jwt-token handler jwt)

Wrap handler with JWT authentication middleware.

Wrap `handler` with JWT authentication middleware.
raw docstring

wrap-rolesclj

(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.
raw docstring

wrap-userclj

(wrap-user handler db)

Wrap handler with middleware that loads the current user.

Wrap `handler` with middleware that loads the current user.
raw docstring

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

× close