Skip to content

basalt / subscriptions/src / WebhookSecretMissingError

Class: WebhookSecretMissingError ​

Defined in: subscriptions/src/gateway.ts:16

Thrown when a gateway is asked to verify a webhook but no signing secret is configured. Verification fails closed: an unauthenticated callback must never be trusted (anyone could forge a payment.succeeded).

Extends ​

Constructors ​

Constructor ​

> new WebhookSecretMissingError(gateway): WebhookSecretMissingError

Defined in: subscriptions/src/gateway.ts:18

Parameters ​

gateway ​

string

Returns ​

WebhookSecretMissingError

Overrides ​

BasaltError.constructor

Properties ​

code ​

> readonly code: string

Defined in: core/src/errors.ts:25

Inherited from ​

BasaltError.code


details? ​

> readonly optional details?: Record<string, unknown>

Defined in: core/src/errors.ts:28

Structured payload passed to the constructor, exactly as given (never sanitised here).

Inherited from ​

BasaltError.details


status ​

> readonly status: 500 = 500

Defined in: subscriptions/src/gateway.ts:17

Released under the MIT License.