891 B
891 B
Auth Module
Purpose
Handles user authentication, login, session management, and logout functionality. This module provides the foundation for all authenticated routes in the application.
Key Files
resources/js/Pages/Auth/Login.vue- Vue login componentapp/Http/Controllers/LoginController.php- Authentication controllerapp/Models/User.php- User model with authentication
Public APIs
authenticate()- Authenticate user via JWTextendcurrentSession()- Extend current session lifetimesetSessiontoKeepAlive()- Keep session alive
Dependencies
Hypervel\Support\Facades\AuthApp\Http\Controllers\Pages\Core\ApplicationController
Important Behavior
- Uses JWT-based authentication
- Validates user credentials against database
- Creates session upon successful login
- Redirects to home page or returns JSON response based on request type