EndPointBlank. AccessTokens
(end_point_blank_elixir v0.3.1)
Copy Markdown
Thread-safe in-memory cache for access tokens keyed by target hostname.
Tokens are proactively refreshed when they are within two minutes of expiry to avoid serving stale tokens under concurrent load.
Summary
Functions
Returns a specification to start this module under a supervisor.
Clears all cached tokens.
Returns true if a non-expiring token is cached for hostname.
Removes the cached token for hostname.
Returns the cached token for hostname, generating a new one if needed.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
Clears all cached tokens.
Returns true if a non-expiring token is cached for hostname.
Removes the cached token for hostname.
Returns the cached token for hostname, generating a new one if needed.