Video
Firebase: Error (auth/unauthorized-domain).
Firebase: Error (auth/unauthorized-domain). Sign-in fails after you deploy your app.
Video transcript
Firebase: Error (auth/unauthorized-domain). Sign-in fails after you deploy your app. It means the address your app runs on is not on Firebase's list of authorized domains. One possible cause: the app domain is not authorized for OAuth operations for your Firebase project. Step 1. In the Firebase console, open Authentication, Settings, Authorized domains, and click Add domain. Step 2. Make sure your redirect domain is in the list. Enter only the host, such as app.example.com, with no https and no path. Step 3. If the domain is already listed, check your API key: that the Browser key was not deleted, and that the Firebase Authentication API is allowed for it. You may not see it yourself: you're signed in, your customers aren't. Sign-in can work where you test and still fail on the deployed domain. VibeFix (vibe-fixer.com): free check first.
Read the full guide: Firebase: Error (auth/unauthorized-domain) fix