High-level namespace for client authentication.
High-level namespace for client authentication.
(current auth)
Return the current auth store state.
Return the current auth store state.
(expired? auth)
True if the auth is expired.
True if the auth is expired.
(expires-within? auth ttl)
True if the auth will expire within ttl
seconds.
True if the auth will expire within `ttl` seconds.
(maintain! client f)
Maintain client authentication state. Returns a keyword indicating the maintenance result.
Maintain client authentication state. Returns a keyword indicating the maintenance result.
(new-state)
Construct a new auth state store.
Construct a new auth state store.
(renewable? auth)
True if the auth token can be renewed right now.
True if the auth token can be renewed right now.
(set! auth info)
Set the auth store state to the provided info.
Set the auth store state to the provided info.
(valid? auth)
True if the auth information map conforms to the spec.
True if the auth information map conforms to the spec.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close