Skip to content

🚨 [BUG] Firebase Authentication Error: “auth/unauthorized-domain” on Login and Signup Pages #227

@codewithyasho

Description

@codewithyasho

Description

When trying to sign up or log in on the deployed website (https://aistockanalyzer.onrender.com/), Firebase authentication fails with the error message:

Firebase: Error (auth/unauthorized-domain).

This happens for both Google Sign-In and Email/Password methods, preventing users from logging in or creating an account.

Where is the issue?

select Frontend or backend

  • [ x ] Frontend
  • Backend

Steps to Reproduce

Example:

  1. Go to https://aistockanalyzer.onrender.com/
  2. Click on Signup or Login
  3. Try to sign in using Google or Email/Password
  4. Observe the error message:
    Firebase: Error (auth/unauthorized-domain).

Screenshots

Image Image

Environment

  • OS: Windows 11
  • Browser: Microsoft Edge (Chromium)
  • Device: Desktop

Additional Notes

The issue occurs because the deployed domain (aistockanalyzer.onrender.com) is not added to Firebase → Authentication → Settings → Authorized Domains.
To fix this, the admin should add the Render domain to the Firebase authorized domains list.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions