Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nihonjinrxs/jwt-reader
Minimal utility to read (but not verify) JWTs at the command line
https://github.com/nihonjinrxs/jwt-reader
Last synced: about 2 months ago
JSON representation
Minimal utility to read (but not verify) JWTs at the command line
- Host: GitHub
- URL: https://github.com/nihonjinrxs/jwt-reader
- Owner: nihonjinrxs
- Created: 2023-10-04T16:00:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-04T16:07:05.000Z (over 1 year ago)
- Last Synced: 2024-10-21T21:33:14.074Z (3 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jwt-reader
This is a minimal program to enable reading the contents of a JWT at the shell.
It does not attempt to verify JWTs (because it doesn't know anything about the certs).
## Installing
To make it available locally, just do something like:
- Clone this repo
- Enter the root directory where this repo lives
- `npm install -g .`You'll then have a shell command `jwt-reader` available in your shell.
## Using
```{sh}
$ jwt-reader
This tool will decode a JSON web token so you can see the contents.
NOTE: It does NOT verify the token.Enter the token to decode:
{
... parsed token payload
}
```You can include headers and signature by using the optional CLI argument `-c` or `--complete`.
## MIT License
Copyright © 2023 Ryan B. Harvey
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.