- Go to Application > Preferences or click the cog icon (⚙️)
- Navigate to the Plugins tab
- Enter
insomnia-plugin-jwt-generate-header
- Click Install
- Navigate to https://insomnia.rest/plugins/insomnia-plugin-jwt-generate-header
- Click Install Plugin
- Click Open
- Once opened, click 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
{
"jwt-generate-header": {
"jwt-header-name": "x-my-jwt-header-name",
"jwt-algorithm": "HS256",
"jwt-expiresIn": "2m",
"jwt-secret": "secret-xxxx"
}
}
jwt-generate-header-payload