ex_swift v0.2.0 ExSwift.Auth.Token
Authentication token struct with fields necessary to make API calls.
token
and service_url
fields are required and used by ExSwift.Request.
Link to this section Summary
Functions
Create new auth token based on config
Link to this section Types
Link to this type
t()
t()
t() :: %ExSwift.Auth.Token{
expires_at: DateTime.t(),
issued_at: DateTime.t() | nil,
service_url: String.t(),
token: String.t()
}
t() :: %ExSwift.Auth.Token{ expires_at: DateTime.t(), issued_at: DateTime.t() | nil, service_url: String.t(), token: String.t() }
Link to this section Functions
Link to this function
create(config)
create(config)
create(ExSwift.Config.t()) :: {:ok, t()} | {:error, any()}
create(ExSwift.Config.t()) :: {:ok, t()} | {:error, any()}
Create new auth token based on config
Link to this function
find_service_url(config, json)
Link to this function