Skip to content

feat(plugin): JWT Faker for generating test JWTs #515

Description

@davinder-sudo

Summary

Add a JWT Faker plugin that enables developers to generate JSON Web Tokens (JWTs) for testing authenticated APIs directly within Voiden.

The plugin should support generating signed or unsigned JWTs with customizable headers, payloads, claims, expiration, and signing algorithms.

Problem

Testing authenticated APIs often requires manually creating JWTs using external websites or scripts, making the workflow slower and less convenient.

Proposed Solution

Create a JWT Faker plugin that allows users to generate JWTs directly inside Voiden.

Features

  • Generate JWTs using:
    • HS256
    • HS384
    • HS512
  • Custom payload editor
  • Custom header editor
  • Configure expiration (exp)
  • Configure issued-at (iat)
  • Configure not-before (nbf)
  • Generate unsigned tokens for testing
  • Copy generated JWT
  • Save reusable templates
  • Preview decoded JWT

Example

Payload

{
  "sub": "123456789",
  "email": "john@example.com",
  "role": "admin",
  "exp": 1764000000
}

Output

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...

Benefits

  • Faster authentication testing
  • No external JWT generators required
  • Improves QA and API development workflows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions