To fix the "unauthorized-domain" error for Google OAuth, follow these steps:
- Visit Firebase Console
- Select your project:
vlogify-9944
- Go to Authentication in the left sidebar
- Click on Settings tab
- Scroll down to Authorized domains
Add the following domains to the authorized domains list:
vlogify-frontend-yckt.onrender.com(your deployed frontend)localhost(for local development)
- Click Save to apply the changes
- Deploy your changes
- Test Google OAuth on your deployed site
If you can't access Firebase Console immediately, users can still sign in using email/password while you configure the OAuth domains.
Your Firebase project details:
- Project ID: vlogify-9944
- Auth Domain: vlogify-9944.firebaseapp.com
- Storage Bucket: vlogify-9944.firebasestorage.app
Make sure these are set in your deployment environment:
VITE_FIREBASE_API_KEYVITE_FIREBASE_AUTH_DOMAINVITE_FIREBASE_PROJECT_IDVITE_FIREBASE_STORAGE_BUCKETVITE_FIREBASE_MESSAGING_SENDER_IDVITE_FIREBASE_APP_IDVITE_FIREBASE_MEASUREMENT_ID