2 ms·
For inspecting JWT tokens, I like the step command-line tool: https://smallstep.com/cli/ https://smallstep.com/cli/ pbpaste | step crypto jwt inspect --insec
by arcatan 6y ago
For inspecting JWT tokens, I like the step command-line tool: https://smallstep.com/cli/ 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)
- jamietanna 6y agoThis is interesting! I've blogged about an OpenSSL-only version in https://www.jvt.me/posts/2019/06/13/pretty-printing-jwt-openssl/ 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 :)