Tango.ConnectionInfo (tango v0.3.0)

Copy Markdown View Source

Credential-free view of a stored OAuth connection.

Carries identity and lifecycle fields only. Omits tokens, client secrets, raw provider payloads, provider configuration, and retry state. A read does not refresh tokens or take locks, and an :active status does not promise the access token is still usable or unchanged.

Summary

Types

status()

@type status() :: :active | :expired | :revoked

t()

@type t() :: %Tango.ConnectionInfo{
  account_subject: String.t() | nil,
  expires_at: DateTime.t() | nil,
  granted_scopes: [String.t()] | nil,
  id: integer(),
  provider_slug: String.t(),
  status: status(),
  tenant_id: String.t()
}