Runtime configuration for the Tink SDK.
Set values in config/runtime.exs:
config :tink,
client_id: System.get_env("TINK_CLIENT_ID"),
client_secret: System.get_env("TINK_CLIENT_SECRET"),
base_url: "https://api.tink.com",
link_base_url: "https://link.tink.com",
webhook_secret: System.get_env("TINK_WEBHOOK_SECRET"),
timeout: 30_000,
max_retries: 3,
retry_delay: 500,
http_adapter: Tink.HTTP.Finch,
cache: [
enabled: true,
max_size: 1_000
]Disabling cache in tests
# config/test.exs
config :tink, cache: [enabled: false]
Summary
Functions
@spec base_url() :: String.t()
@spec cache_enabled?() :: boolean()
@spec cache_max_size() :: pos_integer()
@spec client_id() :: String.t()
@spec client_secret() :: String.t()
@spec http_adapter() :: module()
@spec link_base_url() :: String.t()
@spec max_retries() :: non_neg_integer()
@spec rate_limit_cfg() :: keyword()
@spec retry_delay() :: non_neg_integer()
@spec timeout() :: pos_integer()
@spec webhook_secret() :: String.t() | nil