Anu.Config (Anu v0.2.1)

Copy Markdown View Source

Runtime configuration for webhook secrets.

Delivery and cloud credentials are never read from application env; they live on an explicit %Anu.Client{} (see Anu.Client). This module only resolves the webhook secrets used as fallbacks by Anu.Webhook.Plug when the :secret / :verify_token plug options are not given.

Configuration keys

config :anu,
  verify_token: "your_verify_token",
  app_secret: "your_app_secret"

Summary

Functions

Returns the WhatsApp app secret for webhook signature verification.

Returns the webhook verification token.

Functions

app_secret()

@spec app_secret() :: String.t()

Returns the WhatsApp app secret for webhook signature verification.

Raises if not configured.

verify_token()

@spec verify_token() :: String.t()

Returns the webhook verification token.

Raises if not configured.