Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matthieubosquet/jwt-d

Decode JSON Web Tokens.
https://github.com/matthieubosquet/jwt-d

Last synced: about 2 months ago
JSON representation

Decode JSON Web Tokens.

Awesome Lists containing this project

README

        

# Decode JWTs

[![npm](https://img.shields.io/npm/v/jwt-d)](https://www.npmjs.com/package/jwt-d)

A small utility to decode JSON Web Tokens.

## Usage

```bash
npx jwt-d eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
```

## Aliasing

Consider adding `alias jwt-d='npx jwt-d@latest'` to your shell.

That would allow you to directly invoke the latest version of `jwt-d` via:

```bash
jwt-d eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
```

## Note

It also knows to decode tokens copy/pasted from firefox's dev tools.

```bash
jwt-d access_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
jwt-d id_token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.
...
```