https://github.com/spurreiter/jwtdecode
https://github.com/spurreiter/jwtdecode
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/spurreiter/jwtdecode
- Owner: spurreiter
- License: mit
- Created: 2020-05-20T19:45:47.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T20:03:37.000Z (almost 5 years ago)
- Last Synced: 2025-01-07T06:37:52.342Z (4 months ago)
- Language: JavaScript
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jwtdecode
CLI to decode JWT token payloads
Do not use to verify tokens.
## Install
```bash
npm i -g https://github.com/spurreiter/jwtdecode
```## Usage
decode from string
```
jwtdecode
```pipe from file
```
cat test/token.txt | jwtdecode
```pipe from curl
```
curl -v \
-d "grant_type=password" \
-d "username=$username" \
-d "password=$password" \
-d "client_id=$client_id" \
http://localhost:8080/auth/realms/$realm/protocol/openid-connect/token | jwtdecode
```## License
MIT Licensed