(generate-jwt secret payload)
Generates a HS256 JWT token containing data as a map and secured with secret.
Generates a HS256 JWT token containing data as a map and secured with secret.
(verify-jwt secret jwt)
Returns the JWT payload as map if valid, else an exception.
Returns the JWT payload as map if valid, else an exception.
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |