@kinde/jwt-decoder
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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:

  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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0-4
    0
    • next
  • 0.2.0
    1,228
    • latest

Version History

Package Sidebar

Install

npm i @kinde/jwt-decoder

Weekly Downloads

1,244

Version

0.2.0

License

none

Unpacked Size

3.96 kB

Total Files

6

Last publish

Collaborators

  • kinde_engineering