Liking cljdoc? Tell your friends :D

jerks-whistling-tunes.core


audclj

(aud expected-aud)

Returns a predicate that validates the aud of a JWT

Returns a predicate that validates the aud of a JWT
sourceraw docstring

current-time-secsclj

(current-time-secs)

Returns the current time in seconds

Returns the current time in seconds
sourceraw docstring

encodeclj

(encode claims signer)

Encodes a map of claims as a JWT.

Encodes a map of claims as a JWT.
sourceraw docstring

expclj

(exp _ {:keys [exp]} _)

Returns true if the JWT has not expired, false otherwise

Returns true if the JWT has not expired, false otherwise
sourceraw docstring

iatclj

(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
sourceraw docstring

issclj

(iss expected-iss)

Returns a predicate that validates the iss of a JWT

Returns a predicate that validates the iss of a JWT
sourceraw docstring

nbfclj

(nbf _ {:keys [nbf]} _)

Returns true if the nbf time has passed, false otherwise

Returns true if the nbf time has passed, false otherwise
sourceraw docstring

signatureclj

(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
sourceraw docstring

subclj

(sub expected-sub)

Returns a predicate that validates the sub of a JWT

Returns a predicate that validates the sub of a JWT
sourceraw docstring

valid?clj

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
sourceraw docstring

validateclj

(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
sourceraw docstring

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

× close