question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on firebase.User()

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
javanese84commented, Jun 7, 2016

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!!

0reactions
javanese84commented, Jun 7, 2016

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 with firebase.auth() there is an object currentUser. But it seems that I cannot acces it through firebase.auth().currentUser

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found