Skip to content

codecitizen/clj-jwt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-jwt

A really simple JWT library for generating and verifying JWT tokens.

(require '[jwt :as jwt])
(def token (jwt/jwt {:payload "Hello World"} "key.pem" :rsassa-pss+sha256))
(def the-jwt (jwt/verify token "cert.pem"))
(when (get-in the-jwt [:signature :ok?])
  (println "Token is fine!"))

This library depends on buddy-core for digital signatures. You can find the list of supported algorithms here.

About

A really simple JWT library for generating and verifying JWT tokens.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published