workos-node icon indicating copy to clipboard operation
workos-node copied to clipboard

workos.webhooks.constructEvent does not support `flag.created` event, webhook events revoked

Open leecjohnny opened this issue 3 months ago • 0 comments

Image

SDK event de-serializer: https://github.com/workos/workos-node/blob/b6023aa3296dd0dc508e5bfeb917cad5b0e823e6/src/common/serializers/event.serializer.ts#L26

flag.created is not a case, which leads to the constructEvent to return undefined

In the undefined case, our web hook consumer will revoke the webhook event.

similar to previously resolved issue: https://github.com/workos/workos-node/issues/1360

leecjohnny avatar Oct 03 '25 23:10 leecjohnny