JSON Server Auth

JSON →
library 2.1.0 ·javascript
verified May 27, 2026

JSON Server Auth is a middleware that adds JWT-based authentication and authorization capabilities to JSON Server, enabling developers to quickly create mock REST APIs with realistic security flows for prototyping and testing. Currently at version 2.1.0, this package doesn't specify a fixed release cadence but generally follows the evolution of JSON Server. Its key differentiators include a simplified authentication flow with user registration and login endpoints (`/register`, `/login`), automatic password hashing with `bcryptjs`, and a Unix-like numeric permission system (e.g., `640`) for granular resource authorization based on owner, logged-in users, and public access. It integrates directly with JSON Server, either via its dedicated CLI or as a programmatic middleware, making it an efficient tool for front-end development requiring mock authentication without backend implementation.

total hits 17
actors 8 distinct systems
last hit 4d ago AhrefsBot
MetaBot
4
GPTBot
2
Script
2
ClaudeBot
1
Search engines
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇷 France · 🇮🇳 India · 🇫🇮 Finland