DocuSign.ClientRegistry (DocuSign v0.4.2) View Source
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
Specs
oauth_error() :: OAuth2.Response.t() | OAuth2.Error.t()
Specs
user_id() :: String.t()
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Specs
client(user_id()) :: {:ok, OAuth2.Client.t()} | {:error, oauth_error()}
Get API Client
Async refreshes a token.
Callback implementation for GenServer.init/1
.