Random Utilities, authentication, lock-state helpers (hard lock, soft lock, remaining wait).
Random Utilities, authentication, lock-state helpers (hard lock, soft lock, remaining wait).
(hard-lock-time m)Gets hard-lock timestamp from user/auth map.
Gets hard-lock timestamp from user/auth map.
(hard-locked? m)Returns true when hard lock timestamp is present.
Returns true when hard lock timestamp is present.
(lock-wait auth-config-or-lock-wait)Returns lock wait duration from auth config map/record or explicit duration.
Returns lock wait duration from auth config map/record or explicit duration.
(soft-lock-passed m now)Returns duration passed since soft lock until now (positive only).
Returns duration passed since soft lock until `now` (positive only).
(soft-lock-remains lock-passed auth-config-or-lock-wait)(soft-lock-remains m auth-config-or-lock-wait now)Returns remaining soft-lock duration (or nil when no active soft lock).
Returns remaining soft-lock duration (or nil when no active soft lock).
(soft-lock-time m)Gets soft-lock timestamp from user/auth map.
Gets soft-lock timestamp from user/auth map.
(soft-locked? lock-passed auth-config-or-lock-wait)(soft-locked? m auth-config-or-lock-wait now)Returns true when current soft-lock window has not expired.
Returns true when current soft-lock window has not expired.
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 |