+ 1

Firebase auth not working

Hey guys, I’m using Firebase auth for my project, and I get an error every time I use my sign up function. It looks like it says Firebase.auth is not defined. It seems like there’s a problem with the SDK. I have all the SDK’s inserted but I guess they are not loading properly. I even tried putting them at the end. https://code.sololearn.com/Wt098Uxkdgv8/?ref=app

4th Aug 2020, 10:33 PM
Coder
Coder - avatar
2 Antworten
+ 1
`src="/__/firebase/7.17.1/firebase-auth.js"` won't work. In the docs they have used '/__/firebase/' as an abbreviation for the path to the firebase file. Instead use `src="https://www.gstatic.com/firebasejs/7.17.1/firebase-auth.js"` Your code still has an error but it is easy enough for you to figure out. Also, while fixing the code, I created an account. Delete it from the console please.
4th Aug 2020, 10:47 PM
XXX
XXX - avatar
+ 3
XXX Thanks for your help 👌🏻
4th Aug 2020, 11:08 PM
Coder
Coder - avatar