ticarpi / jwt_tool

:snake: A toolkit for testing, tweaking and cracking JSON Web Tokens
GNU General Public License v3.0
5.47k stars 671 forks source link

Add XDG_CONFIG_HOME support #99

Open crahan opened 1 year ago

crahan commented 1 year ago

This PR adds support for the XDG Base Directory specification.

When a user has the $XDG_CONFIG_HOME environment variable set, the config folder will be created at $XDG_CONFIG_HOME/jwt_tool. If this environment variable is not set, then the default ~/.jwt_tool path is used.

This fixes the request in https://github.com/ticarpi/jwt_tool/issues/53

Thank you for creating such an awesome tool!