elysia-jwt-plugin-singleton

Community

Fix Elysia.js 401 auth errors from duplicate JWT plugins.

Authorfreedomw1987
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill resolves 401 Unauthorized errors in Elysia.js applications where valid JWT tokens signed by authentication routes are rejected by protected routes, caused by multiple separate JWT plugin instances that cannot verify tokens signed by other instances, as well as Elysia 1.2 derive cache bugs that produce identical 401 symptoms on POST routes with body schemas.

Core Features & Use Cases

  • Diagnoses duplicate JWT plugin instances across route files to identify token verification failure root causes.
  • Provides a shared singleton JWT plugin pattern to align token signing and verification across all routes.
  • Includes workarounds for Elysia 1.2 derive cache bugs that cause undefined user IDs on POST routes with body schemas.
  • Use Case: A developer building a Bun-based Elysia.js API with JWT authentication can use this Skill to fix broken protected routes that return 401 even with valid login tokens.

Quick Start

Use this skill to fix 401 Unauthorized errors in your Elysia.js app when valid JWT tokens are rejected by protected routes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: elysia-jwt-plugin-singleton
Download link: https://github.com/freedomw1987/tree_monstor/archive/main.zip#elysia-jwt-plugin-singleton

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 536,000+ vetted skills library on demand.