JWT

Decode, analyze, and search JWT tokens with beautiful formatting

LLA JWT Plugin

JWT decoder and analyzer for lla with beautiful formatting, search capabilities, and validation.

Features

  • Token Decoding: Beautiful formatted display of JWT header, payload, and signature
  • Expiration Checking: Automatic expiration validation with time remaining
  • Smart Search: Regex-powered search through JWT contents
  • History Management: Store and manage decoded JWT tokens
  • Multiple Input Methods: Paste, clipboard, or select from history
  • Flexible Copying: Copy full token, header, payload, or specific claims
  • Claim Highlighting: Automatically highlight important JWT claims

Configuration

Configuration file location: ~/.config/lla/plugins/jwt/config.toml

auto_check_expiration = true
save_to_history = true
max_history_size = 50
highlight_claims = ["sub", "iss", "aud", "exp", "iat", "nbf"]
 
[colors]
success = "bright_green"
info = "bright_cyan"
warning = "bright_yellow"
error = "bright_red"
header = "bright_blue"
payload = "bright_magenta"
claim = "bright_green"
expired = "bright_red"
valid = "bright_green"

Usage

Decode a JWT token

lla plugin --name jwt --action decode

This will:

  1. Prompt you to choose input method (paste, clipboard, or history)
  2. Display the decoded JWT with formatted header and payload
  3. Show expiration status if applicable
  4. Offer options to copy parts or save to history

Search within JWT tokens

lla plugin --name jwt --action search

Search for specific claims or values within JWT tokens using regex patterns.

Manage token history

lla plugin --name jwt --action history

View, copy, or remove previously decoded JWT tokens from history.

Configure preferences

lla plugin --name jwt --action preferences

Adjust settings:

  • Toggle auto-check expiration
  • Toggle save to history
  • Set max history size
  • Manage highlighted claims

Display help

lla plugin --name jwt --action help

Display Examples

Token Display

═══════════════════════════════════════════════════════════════════════════════
  🔐 JWT TOKEN DETAILS
═══════════════════════════════════════════════════════════════════════════════
 
┌─ HEADER ─────────────────────────────────────────────────────────────┐
{
  alg: "HS256",
  typ: "JWT"
}
└──────────────────────────────────────────────────────────────────────┘
 
┌─ PAYLOAD ────────────────────────────────────────────────────────────┐
{
  sub: "1234567890",
  name: "John Doe",
  iat: 1516239022,
  exp: 1735689600
}
└──────────────────────────────────────────────────────────────────────┘
 
 Expires in 45 days
 
┌─ SIGNATURE ──────────────────────────────────────────────────────────┐
  SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c
└──────────────────────────────────────────────────────────────────────┘

Search Results

═══════════════════════════════════════════════════════════════════════════════
🔍 Found 3 matches for 'user'
═══════════════════════════════════════════════════════════════════════════════
 
 payload » userId
  "12345"
 
 payload » username
  "john.doe"
 
 payload » user_role
  "admin"

Actions

  • decode - Decode and view JWT token details
  • search - Search JWT contents with regex support
  • history - Manage JWT token history
  • preferences - Configure plugin settings
  • help - Show help information