MCPcopy
hub / github.com/hatchet-dev/hatchet / SvixAuth

Struct SvixAuth

sdks/go/features/webhooks.go:89–91  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

87// Only the signing secret (whsec_...) is required; signature headers and
88// algorithms are configured explicitly to match Svix's expectations.
89type SvixAuth struct {
90 SigningSecret string
91}
92
93func (a SvixAuth) toCreateRequest(opts CreateWebhookOpts) (rest.V1CreateWebhookRequest, error) {
94 var req rest.V1CreateWebhookRequest

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected