Decode and validate Kinde Webhook tokens
# npm
npm install @kinde/webhooks
# yarn
yarn add @kinde/webhooks
# pnpm
pnpm add @kinde/webhooksimport{decodeWebhook}from"@kinde/webhooks";// Not sure of the type at decode pointconstdecodedWebhook=awaitdecodeWebhook("eyJhbGc...","https://your-subdomain.kinde.com");if(decodedWebhook?.type===WebhookEventType.userCreated){// decodedWebhook is type safe userCreated event}// Know the event type at decode pointconstdecodedWebhook=awaitdecodeWebhook<UserCreatedWebhookEvent>("eyJhbGc...","https://your-subdomain.kinde.com");// decodedWebhook is type safe userCreated eventKinde Documentation - Explore the Kinde docs
If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.