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.