Simple library to validate JWT tokens
# npm
npm install @kinde/jwt-validator
# yarn
yarn add @kinde/jwt-validator
# pnpm
pnpm install @kinde/jwt-validatorimport { validateToken, type jwtValidationResponse } from "@kinde/jwt-validator";
const validationResult: jwtValidationResponse = await validateToken({
token: "eyJhbGc...",
domain: "http://mybusiness.kinde.com"
});Kinde 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.
The development toolchain requires Node.js 22.12 or newer and the pnpm version
pinned in package.json. These are development requirements, not consumer runtime
requirements.
pnpm install --frozen-lockfile
pnpm lint
pnpm build
pnpm test:coverage --runTests use Vitest 5. Always await asynchronous assertions such as
expect(promise).rejects and expect(promise).resolves; unawaited assertions fail
the test.
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.