@hatang/sdk
Guide
Developer hub
Preparing search index...
constructWebhookEvent
Function constructWebhookEvent
constructWebhookEvent
<
D
=
Record
<
string
,
unknown
>
>
(
rawBody
:
RawBody
,
headers
:
HeaderBag
,
secret
:
string
,
options
?:
{
toleranceSec
?:
number
}
,
)
:
Promise
<
WebhookEvent
<
D
>
>
Verify a webhook delivery and return the event, or throw HatangSignatureError.
Type Parameters
D
=
Record
<
string
,
unknown
>
Parameters
rawBody
:
RawBody
headers
:
HeaderBag
secret
:
string
options
:
{
toleranceSec
?:
number
}
= {}
Returns
Promise
<
WebhookEvent
<
D
>
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guide
Developer hub
@hatang/sdk
Loading...
Verify a webhook delivery and return the event, or throw HatangSignatureError.