SvixAuth implements Svix's signature verification protocol for webhooks. Only the signing secret (whsec_...) is required; signature headers and algorithms are configured explicitly to match Svix's expectations.
| 87 | // Only the signing secret (whsec_...) is required; signature headers and |
| 88 | // algorithms are configured explicitly to match Svix's expectations. |
| 89 | type SvixAuth struct { |
| 90 | SigningSecret string |
| 91 | } |
| 92 | |
| 93 | func (a SvixAuth) toCreateRequest(opts CreateWebhookOpts) (rest.V1CreateWebhookRequest, error) { |
| 94 | var req rest.V1CreateWebhookRequest |
nothing calls this directly
no outgoing calls
no test coverage detected