Liking cljdoc? Tell your friends :D

flybot.oie.strategy.bearer


bearer-token-strategyclj

(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`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close