Liking cljdoc? Tell your friends :D

io.randomseed.utils.auth.locking

Random Utilities, authentication, lock-state helpers (hard lock, soft lock, remaining wait).

Random Utilities, authentication, lock-state helpers (hard lock, soft lock, remaining wait).
raw docstring

*lock-wait-default*clj

source

hard-lock-timeclj

(hard-lock-time m)

Gets hard-lock timestamp from user/auth map.

Gets hard-lock timestamp from user/auth map.
sourceraw docstring

hard-locked?clj

(hard-locked? m)

Returns true when hard lock timestamp is present.

Returns true when hard lock timestamp is present.
sourceraw docstring

lock-waitclj

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

soft-lock-passedclj

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

soft-lock-remainsclj

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

soft-lock-timeclj

(soft-lock-time m)

Gets soft-lock timestamp from user/auth map.

Gets soft-lock timestamp from user/auth map.
sourceraw docstring

soft-locked?clj

(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.
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