Error on firebase.User()
See original GitHub issueHi there,
I’m having issues with firebase in combination with anguarfire. When I try to update the loggedIn User (via Interface firebase.User) I’m getting an error that says that
Cannot read property 'apiKey' of undefined
I’m trying to call it like this:
var user = firebase.User();
Isn’t the User Interface of firebase 3.0 already supported or did you already hear about this?
The versions I am using are:
- firebase: v3.0.3 (3.0.3-rc.1)
- angualarfire: 2.0.1
Thanks in advance
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Admin Authentication API Errors | Firebase - Google
The credential used to initialize the Admin SDK has insufficient permission to access the requested Authentication resource. Refer to Set up a Firebase...
Read more >Where can I find a list of all error codes and messages for ...
Please fix by going to the Auth email templates section in the Firebase Console.", "invalid-verification-id": "The verification ID used to ...
Read more >Error Handling | FlutterFire
The Firebase Authentication SDKs provide a simple way for catching the various errors which may occur which using authentication methods.
Read more >Handling Firebase Authentication Errors and Failures
This chapter will introduce the use of Firebase authentication failure listeners in terms of identifying not just that a failure has occurred, but...
Read more >Firebase Auth Tutorial #23 - Catching Auth Errors - YouTube
Hey gang, in this tutorial I'll show you how to catch and display errors.VUE & FIREBASE FULL COURSE ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
OK, now I have found a solution. I’m now listening in the
$onAuthStateChanged
function for changes and there I can access the object as you wrote above.Thank you very much, iRoachie!!
Yes, I think that’s the same. Unfortunately
firebase.auth().currentUser
gives me null and I’ definitely logged in. When I do a console.log withfirebase.auth()
there is an object currentUser. But it seems that I cannot acces it throughfirebase.auth().currentUser