🔐 Auth System

JWT Authentication & Role-based Access

Logged in users can change password and view their profile information

Please login to view your profile

This section is available only for admin users

Please login to view users list

Available Endpoints

Authentication

POST /api/auth/register

POST /api/auth/login

POST /api/auth/refresh

POST /api/auth/logout

User Management

GET /api/users/profile

PUT /api/users/change-password

GET /api/users (admin only)

Token Info

Access Token: 15 minutes validity
Refresh Token: 7 days validity