Webhook decoder not working
hello guys , i installed the npm package @kinde/webhooks to decode my JWT , in the docs it says to use
the problem is i'm getting this error
and i'm getting undefined result, in my console logs :
is the decoder not supported anymore and i should use an other one ?
const decodedWebhook = decodeWebhook("eyJhbGc...");
if (decodedWebhook.type === WebhookEventType.userCreated) {
// decodedWebhook is type safe userCreated event
}the problem is i'm getting this error
Property 'type' does not exist on type 'Promise<WebhookEvent | null>and i'm getting undefined result, in my console logs :
is the decoder not supported anymore and i should use an other one ?