Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
arcatan
· 6y ago · 0 comments
For inspecting JWT tokens, I like the step command-line tool:
https://smallstep.com/cli/
pbpaste | step crypto jwt inspect --insecure
It can be combined further with jq if you need to dig out a specific field. (pbpaste is a macOS cli command that prints the contents of the clipboard)
Comments
[–]
jamietanna
6y ago
This is interesting! I've blogged about an OpenSSL-only version in
https://www.jvt.me/posts/2019/06/13/pretty-printing-jwt-open...
which optionally needs Python, so you can do it with basically 0 new dependencies, if that's what you want :)