View Source DocuSign.OAuth behaviour (DocuSign v1.2.0)
This module defines the behaviour of the OAuth adapter.
Summary
Callbacks
Create new API client
Returns a map of user information (docusign-specific)
Retrieve access token and return a client
Retrieve a new time to auto refresh token.
Refresh token
Check expiration of token return true if token is expired
Types
@type access_token() :: OAuth2.AccessToken.t()
@type client() :: OAuth2.Client.t()
@type error() :: OAuth2.Error.t()
@type force() :: boolean()
Callbacks
@callback client() :: client()
Create new API client
Returns a map of user information (docusign-specific)
Retrieve access token and return a client
Retrieve a new time to auto refresh token.
Refresh token
@callback token_expired?(access_token() | nil | client()) :: boolean()
Check expiration of token return true if token is expired