View Source DocuSign.ClientRegistry (DocuSign v1.2.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).
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
.
Types
@type oauth_error() :: OAuth2.Response.t() | OAuth2.Error.t()
@type user_id() :: String.t()
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
.