pardnio/node-jwt-auth

最後更新

[!NOTE] 此 README 由 SKILL 生成,英文版請參閱 這裡。


DUAL-TOKEN JWT AUTH BOUND TO EVERY DEVICE!

npm Downloads License


Node.js JWT 驗證函式庫,支援 Refresh Token 輪替、裝置指紋綁定與 Redis 撤銷黑名單

目錄

功能特點

npm install @pardnchiu/jwt-auth · 完整文件

架構

完整架構

graph TB
    Client[客戶端] -->|Cookie / Bearer / X-Refresh-ID| App[Express 路由]
    App --> Auth[JWTAuth]
    Auth --> FP[CreateFingerprint 裝置指紋]
    Auth --> RID[CreateRefreshId]
    Auth --> JWT[jsonwebtoken ES256]
    Auth --> Redis[(Redis refresh / revoke)]
    Auth --> Check[checkUserExists 回呼]
    Auth -->|Set-Cookie / X-New-*| Client

授權

本專案採用 MIT LICENSE。

Author

Just open an issue to share an idea.

node-jwt-auth contributors

©️ 2025 邱敬幃 Pardn Chiu

EN