(aud expected-aud)
Returns a predicate that validates the aud of a JWT
Returns a predicate that validates the aud of a JWT
(current-time-secs)
Returns the current time in seconds
Returns the current time in seconds
(encode claims signer)
Encodes a map of claims as a JWT.
Encodes a map of claims as a JWT.
(exp _ {:keys [exp]} _)
Returns true if the JWT has not expired, false otherwise
Returns true if the JWT has not expired, false otherwise
(iat _ {:keys [iat]} _)
Returns true if the JWT was issued in the past, false otherwise
Returns true if the JWT was issued in the past, false otherwise
(iss expected-iss)
Returns a predicate that validates the iss of a JWT
Returns a predicate that validates the iss of a JWT
(nbf _ {:keys [nbf]} _)
Returns true if the nbf time has passed, false otherwise
Returns true if the nbf time has passed, false otherwise
(signature & sign-fns)
Returns a predicate that validates the signature of a JWT. sign-fns should have an alg specified in the metadata. The algorithm is picked based on the alg field in the header
Returns a predicate that validates the signature of a JWT. sign-fns should have an alg specified in the metadata. The algorithm is picked based on the alg field in the header
(sub expected-sub)
Returns a predicate that validates the sub of a JWT
Returns a predicate that validates the sub of a JWT
Validates a JWT against a collection of predicates. Returns true if all the predicates are successful, false otherwise
Validates a JWT against a collection of predicates. Returns true if all the predicates are successful, false otherwise
(validate token & validation-fns)
Validates a JWT against a collection of predicates. If the token is valid, validate returns the claims. Otherwise validate returns false
Validates a JWT against a collection of predicates. If the token is valid, validate returns the claims. Otherwise validate returns false
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close