jwt-authentication
JWT Authentication Skill
Implement secure, scalable authentication in Node.js applications using JSON Web Tokens.
Quick Start
JWT authentication in 4 steps:
- Install -
npm install jsonwebtoken bcryptjs - Register - Hash password, create user, generate token
- Login - Verify password, generate token
- Protect - Verify token in middleware
Core Concepts
Generate JWT
const jwt = require('jsonwebtoken');
function generateToken(userId) {
More from pluginagentmarketplace/custom-plugin-nodejs
express-rest-api
Build production-ready RESTful APIs with Express.js including routing, middleware, validation, and error handling for scalable backend services
577mongoose-mongodb
Work with MongoDB in Node.js using Mongoose ODM for schema design, CRUD operations, relationships, and advanced queries
505docker-deployment
Containerize and deploy Node.js applications with Docker including multi-stage builds, Docker Compose, and production optimization
384jest-testing
Test Node.js applications with Jest including unit tests, integration tests, mocking, code coverage, and CI/CD integration
93async-patterns
Master asynchronous programming in Node.js with Promises, async/await, streams, and event-driven patterns for efficient non-blocking operations
82websockets
Implement real-time bidirectional communication with Socket.io and ws library for chat, notifications, and live dashboards
62