jwt-decoder

Decode, verify, and generate JSON Web Tokens with PyJWT.

84|15|Updated Dec 31, 2025
One-click install
npx skills add https://github.com/AIDotNet/MoYuCode --skill jwt-decoder
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jwt-decoder
Source: https://github.com/AIDotNet/MoYuCode/tree/main/skills/tools/jwt-decoder
Command: npx skills add https://github.com/AIDotNet/MoYuCode --skill jwt-decoder

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jwt, and includes scripts (resource) components.

What problem does it solve?

This Skill simplifies the process of working with JWT (JSON Web Tokens), allowing users to decode, verify, and generate them securely.

Core Features & Use Cases

  • Decode JWT: Inspect the header and payload of a JWT without verification.
  • Verify JWT: Validate a JWT's signature using a provided secret key and algorithm.
  • Generate JWT: Create new JWTs with custom payloads, secrets, and expiration times.
  • Use Case: A developer needs to debug an authentication issue by inspecting the contents of a JWT received from an API, or generate a test token for a new feature.

Quick Start

Use the jwt-decoder skill to decode the JWT token eyJhbGciOiJIUzI1NiIs...

Frequently Asked Questions about jwt-decoder

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decode a JWT token to inspect its header and payload?

To decode a JWT token, this Skill uses the PyJWT library to parse the token string and extract the JSON header and payload without requiring signature verification. This allows you to easily inspect the contents of any JSON Web Token received from an API.

Can I verify a JWT signature using HS256 and RS256 algorithms?

Yes, you can verify a JWT signature using HS256 and RS256 algorithms. The Skill validates the token's cryptographic signature by applying a provided secret key and the specified algorithm, ensuring the JSON Web Token has not been tampered with.

How to generate a new JWT with a custom payload and expiration time?

To generate a new JWT, provide your custom payload data, a secret key, and an expiration time. The Skill leverages PyJWT to create a secure JSON Web Token using algorithms like HS256 or RS256 for your authentication system.

Do I need the PyJWT library to generate and verify JSON Web Tokens?

Yes, you need the PyJWT library because the Skill requires it for cryptographic operations and JSON parsing. It handles the underlying signature generation and verification logic required to securely manage your JSON Web Tokens.

What is the best way to debug an authentication issue with a JWT received from an API?

The best way to debug an authentication issue is to decode the JWT received from the API to inspect its header and payload. This Skill allows you to safely analyze the token contents and verify its signature to troubleshoot security problems.