pardnio/node-jwt-auth

Last updated

[!NOTE] This README was generated by SKILL, get the ZH version from here.


DUAL-TOKEN JWT AUTH BOUND TO EVERY DEVICE!

npm Downloads License


A Node.js JWT authentication library for Express with refresh token rotation, device fingerprint binding, and Redis revocation

Table of Contents

Features

npm install @pardnchiu/jwt-auth · Documentation

Architecture

Full Architecture

graph TB
    Client[Client] -->|Cookie / Bearer / X-Refresh-ID| App[Express Route]
    App --> Auth[JWTAuth]
    Auth --> FP[CreateFingerprint]
    Auth --> RID[CreateRefreshId]
    Auth --> JWT[jsonwebtoken ES256]
    Auth --> Redis[(Redis refresh / revoke)]
    Auth --> Check[checkUserExists callback]
    Auth -->|Set-Cookie / X-New-*| Client

License

This project is licensed under the MIT LICENSE.

Author

Just open an issue to share an idea.

node-jwt-auth contributors

©️ 2025 邱敬幃 Pardn Chiu

中文