JWT Extension for VS CodeMakes it easy to sign (generate) and verify (decode) JWT tokens in VS Code. Features
Extension SettingsThis extension contributes the following settings:
Using Public/Secret KeysIf 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:
Release Notes1.3.0Full support of assymetrical signing with public/private keys. 1.2.0Added command with duration presets to easily generate tokens of various durations. 1.1.0Major improvement: properly supporting JSON and plain-text payloads. 1.0.0Initial release. Enjoy! License |