insomnia-plugin-jwt-generate-header
v1.3.1
Published
Sign your header with JWT
Readme
Insomnia JWT Header Generator Plugin
Installation
From the Insomnia App
- Go to Application > Preferences or click the cog icon (⚙️)
- Navigate to the Plugins tab
- Enter
insomnia-plugin-jwt-generate-header - Click Install
From Insomnia Plugin Hub
- Navigate to https://insomnia.rest/plugins/insomnia-plugin-jwt-generate-header
- Click Install Plugin
- Click Open
- Once opened, click Install
Manual Install
- Using a terminal,
cdinto your Insomnia plugins folder - See Insomnia Docs - Run
git clone https://github.com/csailly/insominia-plugin-jwt-generate-header cdinto theinsominia-plugin-jwt-generate-headerfolder- Run
npn install
Usage
1. Set the environment variables :
{
"jwt-generate-header": {
"jwt-header-name": "x-my-jwt-header-name",
"jwt-algorithm": "HS256",
"jwt-expiresIn": "2m",
"jwt-secret": "secret-xxxx"
}
}

2. Add the payload in your header as plain json object

:warning: Deprecated way : Add the payload in the header jwt-generate-header-payload

3. And voilà

