CalCom. Credentials
(cal_com v0.3.0)
Copy Markdown
Explicit Cal.com credentials with no environment access.
The package reads no configuration, so the caller states what to send: an API key, an OAuth access token, or nothing for an unauthenticated operation. The token is opaque — this package never parses or refreshes it.
Summary
Functions
Parse credentials without changing the token.
Types
@type t() :: %CalCom.Credentials{ kind: :oauth | :api_key | :none, token: String.t() | nil }
Opaque credentials owned by the caller.
Functions
@spec parse(term()) :: {:ok, t()} | {:error, CalCom.Error.t()}
Parse credentials without changing the token.