Skip to content

Repository files navigation

Kinde Webhook

Description

Decode and validate Kinde Webhook tokens

Installation

# npm
npm install @kinde/webhooks
# yarn
yarn add @kinde/webhooks
# pnpm
pnpm add @kinde/webhooks

Usage

import{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 event

Kinde documentation

Kinde Documentation - Explore the Kinde docs

Contributing

If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch.
  3. Make your changes.
  4. Submit a pull request.

License

By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.

About

JS library to decode and validate Kinde webhooks

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

3 watching

Forks

Releases

Packages

Contributors

Languages