Liking cljdoc? Tell your friends :D
Clojure only.

ring.middleware.jwt


wrap-jwtclj

(wrap-jwt handler opts)

Middleware that decodes a JWT token, verifies against the signature and then adds the decoded claims to the incoming request under :claims.

If the JWT token exists but cannot be decoded then the token is considered tampered with and a 401 response is produced.

If the JWT token does not exist, an empty :claims map is added to the incoming request.

Middleware that decodes a JWT token, verifies against the signature and then
adds the decoded claims to the incoming request under :claims.

If the JWT token exists but cannot be decoded then the token is considered tampered with and
a 401 response is produced.

If the JWT token does not exist, an empty :claims map is added to the incoming request.
sourceraw docstring

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

× close