Skip to content

csailly/insominia-plugin-jwt-generate-header

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insomnia JWT Header Generator Plugin

Installation

From the Insomnia App

  1. Go to Application > Preferences or click the cog icon (⚙️)
  2. Navigate to the Plugins tab
  3. Enter insomnia-plugin-jwt-generate-header
  4. Click Install

From Insomnia Plugin Hub

  1. Navigate to https://insomnia.rest/plugins/insomnia-plugin-jwt-generate-header
  2. Click Install Plugin
  3. Click Open
  4. Once opened, click Install

Manual Install

  1. Using a terminal, cd into your Insomnia plugins folder - See Insomnia Docs
  2. Run git clone https://github.com/csailly/insominia-plugin-jwt-generate-header
  3. cd into the insominia-plugin-jwt-generate-header folder
  4. 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"
  }
}

A test image

A test image

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

A test image

⚠️ Deprecated way : Add the payload in the header jwt-generate-header-payload

A test image

3. And voilà

A test image

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published