0.2.0 • Published 1 year ago
@kinde/jwt-decoder v0.2.0
Kinde JWT decoder
Description
Simple library to decode JWT tokens
Installation
# npm
npm install @kinde/jwt-decoder
# yarn
yarn add @kinde/jwt-decoder
# pnpm
pnpm install @kinde/jwt-decoder
Usage
import function
import { jwtDecoder } from "@kinde/jwt-decoder";
Simple decode
const decodedToken = jwtDecoder("eyJhbGc...");
Decode with extended type
const decodedToken = jwtDecoder<
JWTDecoded & {
// Extra attributes here
}
>("eyJhbGc...");
Kinde documentation
Kinde Documentation - Explore the Kinde docs
Contributing
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.
License
By contributing to Kinde, you agree that your contributions will be licensed under its MIT License.