Authentication Feature
Overview
User authentication and authorization system.
Features
- Email/password login
- Laravel Sanctum token-based authentication
- Role-based access control
- Password reset
- Multi-factor authentication (planned)
User Roles
- Super Admin: System-wide administration
- Academy Admin: Academy management
- Staff: Teaching and admin functions
- Parent: View student information
- Student: Access learning materials
Endpoints
POST /api/v1/auth/register
POST /api/v1/auth/login
POST /api/v1/auth/logout
GET /api/v1/auth/me
POST /api/v1/auth/refresh
Security
- Bcrypt password hashing
- Sanctum token expiration and revocation
- Rate limiting
- CORS configuration
- Input validation