Back to plugins
Install Plugin
Jwt Header Generator
Version 1.3.1
Overview
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,
cd
into your Insomnia plugins folder - See Insomnia Docs - Run
git clone https://github.com/csailly/insominia-plugin-jwt-generate-header
cd
into theinsominia-plugin-jwt-generate-header
folder- 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
⚠️ Deprecated way : Add the payload in the header jwt-generate-header-payload