(generate-token)Create a new high-entropy token.
Returns a map with
:token the token as a string:hashed the hashed value to place in the catalogCreate a new high-entropy token. Returns a map with - `:token` the token as a string - `:hashed` the hashed value to place in the catalog
(hash-token token)Hash a bearer token for storage in a catalog.
Security note: this assumes tokens are high-entropy random secrets (e.g.
generated by generate-token), not user-chosen strings.
Hash a bearer token for storage in a catalog. Security note: this assumes tokens are high-entropy random secrets (e.g. generated by `generate-token`), not user-chosen strings.
(random-token)Deprecated name for generate-token kept for compatibility.
Deprecated name for `generate-token` kept for compatibility.
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 |