View Source DocuSign.ClientRegistry (DocuSign v1.1.0)
GenServer to store API clients and automatically refresh JWT access tokens.
The registry keeps track of API clients using the user ID (which is the API Username in the user's profile on DocuSign).
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Get API Client
Async refreshes a token.
Callback implementation for GenServer.init/1
.
Link to this section Types
@type oauth_error() :: OAuth2.Response.t() | OAuth2.Error.t()
@type user_id() :: String.t()
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
@spec client(user_id()) :: {:ok, OAuth2.Client.t()} | {:error, oauth_error()}
Get API Client
Async refreshes a token.
Callback implementation for GenServer.init/1
.