The jwt encode command crashes when using a secret containing special characters. The crash occurs due to the inability to read the file specified by the --secret parameter.
thread 'main' panicked at src/utils.rs:42:44:
Unable to read file @@vovocha
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Expected behavior
Users should be able to create a valid JWT with secrets that start with the '@' symbol.
Summary
The
jwt encode
command crashes when using a secret containing special characters. The crash occurs due to the inability to read the file specified by the --secret parameter.Steps to reproduce
Run the following command
Actual result
Expected behavior
Users should be able to create a valid JWT with secrets that start with the '@' symbol.
More details:
OS: Ubuntu