You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on integrating "Silent Auth" into our product, and I'm writing an HTTP endpoint to receive Vonage webhook events.
I need to know the types of the events I can receive.
Problem
I see there's a SilentAuthCallback type but it does NOT match the reality of what we receive.
Improve typings by specifying all possible event types, e.g.
exporttypeSilentAuthCallback=|SilentAuthSucceededCallback|SilentAuthFailedCallback|SilentAuthSummaryCallback|SilentAuthExpiredCallback// and so on for all types of event...exporttypeSilentAuthFailedCallback={request_id: string;triggered_at: string;channel: "silent_auth";status: "failed";type: "event";}// ...
Also adding a union type or an enum for the "type" field
The text was updated successfully, but these errors were encountered:
@BeLi4L The SDK does not include types for webhook requests. The types you see are used to type how we send the requests to the API. With some of the requests, custom data cannot be easily typed, so we felt it was not necessary. However, since you're requesting webhook types, we can look into adding them. I'll leave this open so I can give you updates
How do I
type the webhook events I receive from Vonage
API/Product
Accounts
Code Sample
Context
I'm working on integrating "Silent Auth" into our product, and I'm writing an HTTP endpoint to receive Vonage webhook events.
I need to know the types of the events I can receive.
Problem
I see there's a
SilentAuthCallback
type but it does NOT match the reality of what we receive.Indeed, some objects I received looked like:
where
"action"
is missing, or:which is not at all a
SilentAuthCallback
object.Potential solution(s)
The text was updated successfully, but these errors were encountered: