Medplum.TokenCache (medplum_elixir v0.2.0)

Copy Markdown View Source

Internal ETS-backed cache for OAuth tokens shared by Medplum clients.

Summary

Functions

get(client)

@spec get(Medplum.Client.t()) :: {:ok, String.t()} | :miss

put(client, token, expires_at)

@spec put(Medplum.Client.t(), String.t(), integer() | nil) :: :ok