Middleware for loading verifying JWTs by multiple secrets.
Middleware for loading verifying JWTs by multiple secrets.
(build secrets-str)
Build a multi-secret JWT verifier.
Build a multi-secret JWT verifier.
(get-token request)
Middleware to retrieve a token from a request. Return nil if missing or malformed.
Middleware to retrieve a token from a request. Return nil if missing or malformed.
Verifier for JWTs
Verifier for JWTs
(secrets this)
Return seq of secrets.
Return seq of secrets.
(sign this claims)
Create a token.
Create a token.
(sign-with-signer this signer claims)
Create a token.
Create a token.
(signers this)
Return seq of signers in the same order as secrets.
Return seq of signers in the same order as secrets.
(try-verify this token)
Attempt to verify a token with one of the verifiers. Return claims or nil.
Attempt to verify a token with one of the verifiers. Return claims or nil.
(try-verify-with-verifier this verifier token)
Attempt to verify a token with this verifier. Return claims or nil.
Attempt to verify a token with this verifier. Return claims or nil.
(verifiers this)
Return seq of verifies in same order as secrets.
Return seq of verifies in same order as secrets.
(wrap-jwt handler secrets-str)
Return a middleware handler that verifies JWT claims using one of the comma-separated secrets.
Return a middleware handler that verifies JWT claims using one of the comma-separated secrets.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close