858 B
858 B
LoginController.php
Purpose
Handles user authentication including login, session extension, and logout operations.
Key Components
LoginControllerclassauthenticate()methodextendcurrentSession()method
Exported Interfaces
authenticate()- Authenticate user via JWTextendcurrentSession()- Extend current session lifetime
Inputs
$request- HTTP request with username/password- Session data for token validation
Outputs
- Redirect to home page on success
- JSON response on failure
- Session creation on successful authentication
Side Effects
- Creates JWT-based session
- Sets session cookie
Dependencies
Hypervel\Support\Facades\AuthApp\Models\User
Notes
- Uses JWT authentication via Hypervel framework
- Validates credentials against database
- Supports both web and API authentication