Ingram.Marketplace.Auth (Ingram Marketplace API v1.4.2) View Source

Keeps the required bearer token around and refreshes it when required.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the Auth-Agent.

Returns the bearer token or fetches a new one if required.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Specs

start(any(), any()) :: {:ok, integer()}

Starts the Auth-Agent.

Specs

token() :: String.t()

Returns the bearer token or fetches a new one if required.