Skip to main content

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:

Regular User

Home Screen: /home (user home screen)

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

Account Protection: After 5 failed login attempts, you’ll need to verify your email before logging in again.

Session Management

Saving User Session

Retrieving Session

Clearing Session (Logout)

Auto-Login

Persistent Sessions

Security Best Practices

  • 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
  • Unique Device ID: Generated per installation
  • Device Tracking: Monitor login locations
  • Suspicious Activity: Alert on unusual patterns
  • Multi-Device Support: Login from multiple devices
  • Local Storage: Encrypted SharedPreferences
  • Auto-Logout: After extended inactivity
  • Secure Tokens: JWT with expiration
  • Refresh Tokens: Background session renewal

Common Issues

Troubleshooting

Problem: “Email or password incorrect”Solutions:
  1. Verify email is spelled correctly
  2. Check password (case-sensitive)
  3. Use “Forgot Password” if needed
  4. Ensure account was created successfully

Next Steps

Profile Management

Update your account details

Book Your First Ride

Start using Viax