Overview
Hive uses Supabase for secure authentication, providing both email and username-based login options. The platform automatically manages your session and keeps you logged in across browser sessions.Logging In
Username or Email Login
Hive supports two login methods:- Email and Password - Use your registered email address
- Username and Password - Use your username (stored as
nombre_usuario)
If you enter invalid credentials, you’ll see an error message. Make sure your username/email and password are correct.
Session Management
How Sessions Work
When you log in successfully, Hive creates an authenticated session that:- Persists across page refreshes - Your session is stored in
localStorage - Auto-restores on return - When you return to Hive, your session is automatically restored
- Includes user metadata - Your profile data is cached locally for fast access
auth.getSession() to restore your session from secure storage.
Session State Monitoring
Hive monitors authentication state changes in real-time. If your session expires or you log out in another tab, the system will detect it and prompt you to log in again.Password Requirements
When creating your account or changing your password, Hive enforces security standards:- Minimum length: Passwords must meet Supabase’s minimum requirements
- Secure storage: Passwords are hashed and never stored in plain text
- Protected transmission: All authentication happens over HTTPS
User Data Storage
After successful login, Hive stores your user information in two places:localStorage.user- Basic authentication data from Supabase AuthlocalStorage.fullUser- Complete user profile from theusuariostable, including:nombre_usuario- Your usernamenombre_completo- Full namecorreo- Email addresscedula- ID numberpuesto- Job titlerol- User role (administrador, usuario, etc.)foto_url- Profile photo path
Logging Out
Manual Logout
To end your session:- Click your profile menu in the navigation bar
- Select Logout
- Your session will be cleared and you’ll be redirected to the login page
- Calls
supabase.auth.signOut()to invalidate your session - Clears all cached user data from
localStorage - Resets the application state
Logging out on one device doesn’t affect your sessions on other devices unless you explicitly sign out everywhere.
Automatic Session Validation
Background Session Checks
Hive includes automatic session validation that runs before critical operations:- Creating or editing tasks
- Updating projects
- Modifying user profiles
- Uploading files
Acting on Behalf (Admin Feature)
Administrators can act on behalf of other users through the “LCUser” (Lightweight Current User) system:- The admin’s actual session remains active
- Actions are performed as another user
- Audit trails track the actual admin performing actions
localStorage.LCUser.
Troubleshooting
”Session not found” errors
If you see session errors:- Clear your browser cache and try logging in again
- Check your internet connection - Session validation requires connectivity
- Verify with your admin that your account is still active
Login loop issues
If you’re stuck in a login loop:- Open browser DevTools (F12)
- Go to Application > Local Storage
- Clear all Hive-related entries
- Refresh the page and try logging in again
Password reset
If you’ve forgotten your password:- Contact your system administrator
- They can reset your password using the admin panel
- You’ll receive instructions to set a new password
Self-service password reset via email is available if your organization has configured email settings in Supabase.
Security Best Practices
Use strong passwords
Choose a unique password that’s at least 12 characters long with a mix of letters, numbers, and symbols.
Log out on shared devices
Always log out when using Hive on public or shared computers.
Keep credentials private
Never share your username or password with anyone, including colleagues.
Report suspicious activity
Contact your administrator immediately if you notice unauthorized access to your account.
Related Topics
Profile Management
Update your profile information and settings
User Roles
Learn about different user roles and permissions
