Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Rampop01/HR-Platform/llms.txt
Use this file to discover all available pages before exploring further.
Overview
HCMatrix uses token-based authentication to secure access to the platform. This guide walks you through the login process, session management, and logout workflows.Logging In
Navigate to Login Page
Access the HCMatrix login page at
/auth/login. You’ll see a modern login interface with email and password fields.Enter Credentials
Provide your company email address and password. The system validates both fields are required before submission.
Session Storage
Upon successful authentication, the system stores your session in browser localStorage:The session contains:
- token: Your authentication token for API requests
- user: Your user profile (id, name, email)
Session Management
Checking Authentication Status
The system automatically checks if you’re authenticated before allowing access to protected pages:Retrieving Session Data
Your session is retrieved from localStorage when needed:Getting Authentication Token
API requests automatically include your authentication token:Logging Out
To log out of HCMatrix:Error Handling
The login page displays error messages when authentication fails:- Invalid email or password
- Network connectivity issues
- Server unavailable
Alternative Login Methods
HCMatrix also supports Google OAuth for streamlined authentication. Contact your administrator to enable this feature for your organization.Security Best Practices
- Never share your authentication token with others
- Always log out when using shared computers
- Your session is stored in localStorage and persists until you log out
- Tokens are automatically included in API requests via Bearer authentication
Next Steps
After logging in, explore these guides:- Managing Employees - Add and manage your workforce
- Tracking Attendance - Monitor employee time and attendance
- Processing Payroll - Handle payroll operations
