Dominic's Tasks - Login Error Troubleshooting
Date Reported: January 15, 2026 Error Message: "Access Denied - Please sign in with an authorized Google account" Status: Needs Resolution
---
Problem Description
Users attempting to log in to https://dominicstasks.pages.dev are receiving an "Access Denied" error message with the text "Please sign in with an authorized Google account."
Root Cause
The issue is NOT with the email addresses or user accounts. The problem is that the deployed domain dominicstasks.pages.dev has not been added to the Firebase project's Authorized Domains list.
When Google OAuth (Google Sign-In) is used, Firebase checks if the domain requesting authentication is in the authorized list. If the domain is not authorized, Firebase blocks the OAuth flow, which causes the authentication to fail with a generic error message.
Solution
Step 1: Access Firebase Console
Step 2: Navigate to Authentication Settings
Step 3: Add the New Domain
dominicstasks.pages.dev
Step 4: Verify the Domain
The domain should now appear in the Authorized domains list:
Step 5: Test the Login
---
Alternative Solutions
If You Don't Have Access to Firebase Console
If you don't have access to the Firebase Console with the smartpantry-66c66 project, you have two options:
#### Option 1: Contact the Account Owner
#### Option 2: Create a New Firebase Project If you prefer to have full control:
Temporary Workaround (Development)
For testing purposes, you can run the application locally:
cd /workspace/dominicstasks
npm run dev
This will start a local development server at http://localhost:5173, which is automatically authorized (localhost is always in the authorized domains list).
---
Firebase Configuration Checklist
After adding the domain, ensure your Firebase project has the following configured:
Authentication
Firestore Database
Security Rules
Your Firestore security rules should include:
// Authorized emails
const AUTHORIZED_EMAILS = [
'dominicgiles691@gmail.com',
'derrickmg.admin@gmail.com',
'brendamgiles@gmail.com',
];const PARENT_EMAILS = [
'derrickmg.admin@gmail.com',
'brendamgiles@gmail.com',
];
// Helper function to check if user is parent
function isParent(email) {
return PARENT_EMAILS.includes(email);
}
// Rules for tasks collection
match /tasks/{taskId} {
allow read, write: if request.auth != null && request.auth.token.email in AUTHORIZED_EMAILS;
}
// Rules for family messages
match /family_messages/{messageId} {
allow read, write: if request.auth != null && request.auth.token.email in AUTHORIZED_EMAILS;
}
// Rules for private parent messages (only parents)
match /private_messages/{messageId} {
allow read, write: if request.auth != null && isParent(request.auth.token.email);
}
match /private_conversations/{convId} {
allow read, write: if request.auth != null && isParent(request.auth.token.email);
}
// Rules for resources
match /resources/{resourceId} {
allow read: if request.auth != null && request.auth.token.email in AUTHORIZED_EMAILS;
allow write: if request.auth != null && isParent(request.auth.token.email);
}
---
Testing the Fix
Expected Behavior After Fix
Test Accounts
Use these accounts for testing:
---
Common Login Issues
Issue 1: "Access Denied" (Current Issue)
Cause: Domain not in Firebase authorized domains Solution: Add dominicstasks.pages.dev to Firebase ConsoleIssue 2: "Error signing in. Please try again."
Cause: OAuth popup blocked or cancelled Solution:Issue 3: Login works but shows wrong user
Cause: Cached Google account Solution:Issue 4: Login shows "You are not authorized"
Cause: Email not in authorized list Solution: Verify email is in AUTHORIZED_EMAILS in src/services/firebase.ts---
If Problems Persist
Check Console Logs
Open browser developer tools (F12) and check the Console tab for error messages. Common errors to look for:
auth/unauthorized-domainFirebase Debug Mode
Enable Firebase auth debugging:
// In src/services/firebase.ts, add:
import { setLogLevel } from 'firebase/app';setLogLevel('debug');
This will output detailed auth logs to the browser console.
---
Document Information
---
Next Steps
---
This document is part of the Dev folder documentation for Dominic's Tasks & Family Hub.