# Firebase login failure with email and password fails on windows machines

**URL:** <https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668>\
**Category:** Zoom Apps\
**Tags:** api\
**Created:** [July 30, 2024, 6:06pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668 "2024-07-30T18:06:40Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [July 30, 2024, 6:06pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/1 "2024-07-30T18:06:40Z")

</div>

Hello,

**Description**

We have developed a Zoom application using Vue.js, which also utilizes Firebase for email and password authentication. The login view consists of a simple form that requires an email and a password, and we use the `signInWithEmailAndPassword` function from `firebase.auth()`.

The issue we’re facing is specific to Windows machines. While the web app works without issues on both Windows and macOS devices (with the same codebase with the zoom app in marketplace), we cannot log in to the zoom app from Windows machines using the zoom client.

After verifying the credentials, we found that the error message received from Firebase is:

_Firebase: A network AuthError (such as timeout, interrupted connection, or unreachable host) has occurred. (auth/network-request-failed)._

We have checked for any connectivity issues, firewalls, or antivirus software that could be causing this error, but found none. Additionally, we tested the application in non-company environments without any company-wide firewalls, yet the issue persisted. Disabling Windows Defender also did not resolve the problem.

**Question**

Is there a specific configuration or requirement for Zoom applications to work with Windows machines and firebase login using email and password in the Zoom client environment that we might be overlooking? Any insights or suggestions would be greatly appreciated.

Thank you

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [August 2, 2024, 10:52am UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/2 "2024-08-02T10:52:10Z")

</div>

Hello again,  
is there any lead on this? The thing is that by whitelisting the google specific domains and urls it worked but only in the dev app.  
The whitelisted ones are:

- [storage.googleapis.com](http://storage.googleapis.com)
- [identitytoolkit.googleapis.com](http://identitytoolkit.googleapis.com)
- [firebase.googleapis.com](http://firebase.googleapis.com)
- [firebaseinstallations.googleapis.com](http://firebaseinstallations.googleapis.com)
- [securetoken.googleapis.com](http://securetoken.googleapis.com)
- [firestore.googleapis.com](http://firestore.googleapis.com)  
The production one still fails

Thank you

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 9, 2024, 5:08pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/3 "2024-08-09T17:08:36Z")

</div>

@vk1 I’m sorry to hear that firebase isn’t working as expected in Zoom. I’ve ran into issues like this before with other SDKs but not firebase so far.

Are you using their firebase UI to build the auth flow as well or just the SDK functions?

You mentioned this only happens on prod. Is it as simple as changing the Zoom Client ID to the production key or are you changing the entire environment to production?

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [August 9, 2024, 10:11pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/4 "2024-08-09T22:11:18Z")

</div>

Hello @MaxM and thank you for your reply.

I am just using the SDK functions and more specifically the `signInWithEmailAndPassword` one.  
The UI is a simple form actually that expects an email and a password.

Regarding the production now: The staging environment is just a replica of the production (functionality and infrastructure wise) so the data are different but the rest are the same.

Last but not least, as I mentioned, this issue occurs only in windows machines (in MacOS ones the app works perfectly) and the errors that we receive **-only in windows-** and we can see in the console of the zoom embedded browser are the below attached cors ones.  
Having said that, we are wondering if this is an issue related with the windows embedded browser that Zoom is using and whether or not it blocks by default urls that are permitted in the MacOS one and also ignores the whitelisted ones that we have in the Domain Allow List of the features → surface.

 ![Screenshot 2024-08-09 150442](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/d/5d26838ea396a41eae9c3bd70a160c2bac53dbba.png)

Best,  
Vasilis

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 14, 2024, 10:02pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/5 "2024-08-14T22:02:34Z")

</div>

Thank you for sharing those details! I’ll work to reproduce this behavior on my end and work with our team if this seems to be a bug.

In the meantime, if you can share the following details that should help me stay on the same page:

- Zoom Client Version
- Firebase SDK Version
- CSP Header

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [August 14, 2024, 10:22pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/6 "2024-08-14T22:22:43Z")

</div>

Great thank you.  
I hope you manage to find something as this issue is causing us huge problems with our windows users. Apparently the app is completely unusable.  
Firebase: “firebase”: “^9.17.1”  
CSP: {  
“key”: “Content-Security-Policy”,  
“value”: “script-src ‘self’ [maps.googleapis.com](http://maps.googleapis.com) [apis.google.com](http://apis.google.com) [code.jquery.com](http://code.jquery.com) [cdn.jsdelivr.net](http://cdn.jsdelivr.net) [www.googletagmanager.com](http://www.googletagmanager.com) [eu.posthog.com](http://eu.posthog.com) [maxcdn.bootstrapcdn.com](http://maxcdn.bootstrapcdn.com) [unpkg.com/vue@next](http://unpkg.com/vue@next) [ajax.googleapis.com](http://ajax.googleapis.com) [googleads.g.doubleclick.net](http://googleads.g.doubleclick.net) ‘nonce-UNIQUE\_NONCE’ [https://connect.facebook.net](https://connect.facebook.net) [https://challenges.cloudflare.com](https://challenges.cloudflare.com) ; object-src ‘none’; worker-src ‘self’ blob:;”  
},  
Zoom client: the latest version 6.1.6

Thank you

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [August 15, 2024, 3:45pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/7 "2024-08-15T15:45:53Z")

</div>

Thank you for that information! Based on what I’ve seen before I expect this does indeed have to do with the embedded browser that is used on Windows but I wanted to add my thoughts here in case they help to debug on your end.

First, if this is a published application you will want to make sure that you resubmit the application and have users re-install the app. This will make sure that the allow list changes you made are seen by them.

I also have a firebase sample app that was written some time ago but was recently updated that you can find linked below. In that app, I’m using firebase 10.12.4. Does updating the version of firebase that you’re using change the behavior at all?

> <https://github.com/zoom/zoomapps-serverless-vuejs/blob/ec18e02353f04a0b28294db7b1820f4aaff4acda/firebase.json#L25>

As you can see there is a CSP header that is left wide open because it’s a sample app. I’m also wondering if you add a `connect-src` or `script-src` of \*.googleapis.com if that will work around some of these issues?

I’ll keep looking into this on my end.

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [August 16, 2024, 12:45am UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/8 "2024-08-16T00:45:56Z")

</div>

Thank you @MaxM for the reply.

_First, if this is a published application you will want to make sure that you resubmit the application and have users re-install the app. This will make sure that the allow list changes you made are seen by them._  
We have already done this but without success.

One more thing that i would like to mention is that the solution works perfectly in the dev environment, which is exactly the same as the production as I mentioned, so I dont know if it’s actually a CSP related issue.  
Could it be that zoom embedded browser by default blocks some urls even if whitelisted and potentially you from your side need to take some action in order to actually enable the in the production environment?

I mention that because, I remember during the initial review process, one of your colleagues have mentioned something similar. Essentially, that zoom is a bit more flexible when it comes to the dev environment but becomes stricter in the production one.  
I hope that also helps you to pin point the issue.

Best,  
Vasilis

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [August 26, 2024, 4:07pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/9 "2024-08-26T16:07:19Z")

</div>

Hello @MaxM ,  
Are there any updates on this issue? Did you manage to figure out what could be the potential root cause?  
Thank you again,  
Vasilis

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [September 9, 2024, 6:04pm UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/10 "2024-09-09T18:04:30Z")

</div>

Hello again @MaxM ,  
Any updates on this?  
Thank you

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [October 2, 2024, 10:57am UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/11 "2024-10-02T10:57:25Z")

</div>

Hello again @MaxM ,

Could you please advice on potential next steps? Were you able to identify the root cause of this issue?  
As you can understand this has been a blocking point for our application as it affects our user as there isn’t any workaround from our end.

Thank you

---

<div class="post-metadata">

**Author:** ![vk1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/vk1/32/56530_2.png) [@vk1](https://devforum.zoom.us/u/vk1)\
**Post date:** [November 23, 2024, 8:00am UTC](https://devforum.zoom.us/t/firebase-login-failure-with-email-and-password-fails-on-windows-machines/114668/12 "2024-11-23T08:00:49Z")

</div>

Hello @MaxM,

Do you have any updates on this?  
We are really blocked when it comes to windows machines users and any help or update would be highly appreciated.

Thank you.
