(bearer-token-strategy {:keys [verify-token clock]
:or {clock (fn* [] (System/currentTimeMillis))}})Returns a strategy map for Bearer token authentication.
verify-token is (fn [token-hash] -> token-data | nil).
clock is (fn [] -> epoch-ms), defaults to System/currentTimeMillis.
Returns a strategy map for Bearer token authentication. `verify-token` is `(fn [token-hash] -> token-data | nil)`. `clock` is `(fn [] -> epoch-ms)`, defaults to `System/currentTimeMillis`.
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 |