jwt-authentication — Claude Code skill: what it does, how to install
Guides your coding agent in implementing JWT authentication for Node.js, covering token pairs, password hashing, and role checks.
LicenseRef-Proprietary 227 installs ★ 2 updated 2026-01-07
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a claude-codeWhat jwt-authentication does
This skill equips coding assistants with patterns for JSON Web Token authentication in Node.js. It outlines user registration, login pipelines, access and refresh token creation, plus Bearer header inspection middleware.
The workflow relies on standard security conventions. Passwords get hashed with bcryptjs, access tokens expire quickly, and refresh tokens require database storage. The skill also covers role-based access control and token-based password resets. Without jsonwebtoken and bcryptjs installed in your project, the suggested code cannot run.
What it helps with
- issue access and refresh token pairs
- inspect Bearer tokens inside route middleware
- restrict API endpoints with role-based checks
- handle password reset flows using short-lived tokens
Example prompts for the agent
- Create an Express authentication middleware that validates JWT Bearer tokens
- Write login and registration handlers using bcryptjs password hashing
- Set up a role-based access control middleware for admin routes
How to install jwt-authentication
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a claude-code2Manually: put the files in place
~/.claude/skills/jwt-authentication/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/jwt-authentication/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a codex2Manually: put the files in place
.agents/skills/jwt-authentication/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a cursor2Manually: put the files in place
.cursor/skills/jwt-authentication/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pluginagentmarketplace/custom-plugin-nodejs skills/jwt-authentication2Manually: put the files in place
.github/skills/jwt-authentication/SKILL.md1Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a gemini-cli2Platform CLI
gemini skills install https://github.com/pluginagentmarketplace/custom-plugin-nodejs --path skills/jwt-authenticationManually: put the files in place
.devin/skills/jwt-authentication/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about jwt-authentication
How to install jwt-authentication in Claude Code?
Run npx skills add pluginagentmarketplace/custom-plugin-nodejs --skill jwt-authentication -a claude-code in your terminal.
What does jwt-authentication do?
It provides structured patterns for Node.js authentication, guiding your assistant to write JWT handlers, middleware, and RBAC rules.
Which npm packages are required for this authentication flow?
You need jsonwebtoken and bcryptjs in your project dependencies. Install them using npm install jsonwebtoken bcryptjs.