(generate-token prefix)Returns a SensitiveToken with prefix + 32 URL-safe base64 characters.
Returns a SensitiveToken with `prefix` + 32 URL-safe base64 characters.
(hash-token token)SHA-256 hash as 64-char hex string. Accepts string or SensitiveToken.
SHA-256 hash as 64-char hex string. Accepts string or SensitiveToken.
(token-active? token-data now)True if token-data is non-nil, not revoked, and not expired at now (epoch ms).
True if token-data is non-nil, not revoked, and not expired at `now` (epoch ms).
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 |