ArchAstro.TokenServer.Default (archastro v0.2.0)

Copy Markdown

GenServer-backed credential provider with a private ETS credential cache.

It supports four intentionally disjoint modes: secret-key, system-user, direct bearer, and publishable-key multi-session. Refresh work runs outside the GenServer; callers for one session share a generation-fenced refresh while different sessions refresh concurrently.

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

mode()

@type mode() ::
  {:secret_key, String.t()}
  | {:system_user, keyword()}
  | {:bearer, keyword()}
  | {:sessions, keyword()}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts)