An api for an authentication workflow that can be used in a MERN app.
-
Login public route
POST /api/auth/login
-
Register public route
POST /api/auth/register
-
Forgot Password public route
POST /api/auth/forgot
-
Reset Password public route
PUT /api/auth/:resetToken
-
Show All Users protected route For Admin role
GET /api/users
-
Show User By Id protected route For Admin or User Owner role
GET /api/users/:userId
-
Update User protected route For Admin or User Owner role
PUT /api/users/:userId
-
Delete User protected route For Admin or User Owner role
DELETE /api/users/:userId