mike-engel/jwt-cli

Feature Request: Read from file

paholg opened this issue · 1 comments

Summary

I have a very large JWT to decode (1,779,422 characters to be exact). This is too long for cat file.jwt | xargs jwt decode and is too long for zsh or bash to accept pasted into the CLI.

It would be nice if there were a way to read JWTs from a file to bypass these limits.

Steps to reproduce

Download the JWT from here and try to decode it: https://mds3.fidoalliance.org/

Expected behavior

There should be a way to decode/encode very large JWTs.

After looking at the code, I see that you can read from stdin already by entering '-' as the jwt.