User Authentication
Viax provides secure authentication with email/password login, device tracking, and password recovery options.Login Process
Standard Login
1
Enter Email
Provide the email address used during registration
2
Enter Password
Type your account password
3
Device Verification
System validates device and credentials
4
Access Granted
Redirected to appropriate home screen
Login Screen Implementation
User Type Routing
Automatic Navigation
Viax supports multiple user types with automatic routing:- Cliente (User)
- Conductor (Driver)
- Empresa (Company)
- Administrador (Admin)
Password Recovery
Forgot Password Flow
1
Request Reset
Click “Forgot Password?” on login screen
2
Enter Email
Provide registered email address
3
Verify Code
Enter 6-digit code sent to email
4
Set New Password
Create and confirm new password
Implementation
Verification & Reset
Device Security
Device UUID Tracking
Viax tracks devices for security:Why Device Tracking?
- Prevent unauthorized access
- Detect suspicious login attempts
- Enable multi-device management
- Support device-specific features
Failed Login Protection
Rate Limiting
Session Management
Saving User Session
Retrieving Session
Clearing Session (Logout)
Auto-Login
Persistent Sessions
Security Best Practices
Password Security
Password Security
- Minimum Length: 6 characters required
- Hashing: Passwords hashed with bcrypt on backend
- Never Stored Plain: Only hashed values in database
- HTTPS Only: All auth requests over secure connection
Device Verification
Device Verification
- Unique Device ID: Generated per installation
- Device Tracking: Monitor login locations
- Suspicious Activity: Alert on unusual patterns
- Multi-Device Support: Login from multiple devices
Session Security
Session Security
- Local Storage: Encrypted SharedPreferences
- Auto-Logout: After extended inactivity
- Secure Tokens: JWT with expiration
- Refresh Tokens: Background session renewal
Common Issues
Troubleshooting
- Invalid Credentials
- Too Many Attempts
- Network Error
Problem: “Email or password incorrect”Solutions:
- Verify email is spelled correctly
- Check password (case-sensitive)
- Use “Forgot Password” if needed
- Ensure account was created successfully
Next Steps
Profile Management
Update your account details
Book Your First Ride
Start using Viax