Logging In
Sign in with email and password, Google, or with TOTP two-factor authentication.
Logging In
BabyShopHub supports three login methods. All methods are handled securely through Firebase Authentication.
Method 1 — Email & Password
- Open the app and tap "Sign In" on the Welcome Screen
- Enter your registered email and password
- Tap "Log In"
If your credentials are correct and you don't have 2FA enabled, you are immediately taken to the Home Screen.
After 3 failed login attempts, Firebase may temporarily lock the sign-in endpoint for that email. Wait a few minutes before trying again.
Method 2 — Sign In with Google
- On the Login Screen, tap "Continue with Google"
- Choose your Google account from the system picker
- BabyShopHub receives your verified Google profile and creates or loads your account automatically
First-time Google Sign-In: A new BabyShopHub account is created automatically using your Google display name and email. A Welcome email is sent.
Returning Google users: Your existing profile, addresses, wishlist, and orders are loaded immediately.
Google Sign-In works differently on web vs mobile. On web, a popup window is used. On mobile, the native Google account picker is invoked.
Method 3 — Two-Factor Authentication (TOTP)
If you have enabled Google Authenticator 2FA on your account, the login flow adds a second step:
- Enter your email and password as usual
- BabyShopHub verifies your credentials, then signs you out temporarily
- A prompt appears asking for your 6-digit Authenticator code
- Open your Google Authenticator (or compatible TOTP) app and enter the current code
- Tap "Verify" — you are signed in
TOTP codes rotate every 30 seconds. BabyShopHub accepts codes from the current window and ±1 window (±30 seconds) to account for clock drift between your phone and the server.
Login Security Alerts
Every successful email/password login triggers a security notification email to your registered address:
Subject: ️ Security Alert: Login Notification
Content: Login timestamp
If you receive this email but did not log in, change your password immediately from the Profile screen.
Forgot Your Password?
- On the Login Screen, tap "Forgot Password?"
- Enter your registered email address
- A 5-digit OTP is sent to your email with the subject: "Reset Your Password - BabyShopHub OTP"
- Enter the OTP to confirm your identity
- Set a new password
Troubleshooting
| Problem | Solution |
|---|---|
| "Incorrect email or password" | Double-check your credentials. Use Forgot Password if needed. |
| Google Sign-In cancelled | Tap "Continue with Google" again and complete the picker |
| TOTP code rejected | Ensure your phone clock is synced. Try the code just as it refreshes. |
| Account locked | Wait 5–10 minutes then try again |