JWT Extension for VS Code
Makes it easy to sign (generate) and verify (decode) JWT tokens in VS Code.
This extension contributes the following settings:
Using Public/Secret Keys
If you only set jwt.secret in your settings, the jwt extension will perform symmetrical signing/verification using HS256 algorithm.
If you indicate jwt.pubKey in your VS Code settings, jwt extension will immediately assume that you are performing assymetrical signing/verificatin and will use RS256 algorithm. Please also note that in this scenario, the values of jwt.secret and jwt.pubKey are file paths pointing to where you have your public and private keys saved locally, e.g.:
To generate keys that work with RS256, you can run something like the following:
Full support of assymetrical signing with public/private keys.
Added command with duration presets to easily generate tokens of various durations.
Major improvement: properly supporting JSON and plain-text payloads.