Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Add getCurrentUser Method #70

Closed
t-moe opened this issue Jul 10, 2016 · 3 comments
Closed

Add getCurrentUser Method #70

t-moe opened this issue Jul 10, 2016 · 3 comments

Comments

@t-moe
Copy link
Collaborator

t-moe commented Jul 10, 2016

https://developers.google.com/android/reference/com/google/firebase/auth/FirebaseAuth#getCurrentUser()

The official firebase API has a method to fetch the currently signed in user, which is really useful. Without that method one has to save the user object somewhere after login/stateChange.

@EddyVerbruggen
Copy link
Owner

Hi, it may not be documented but it's actually in there :)

firebase. getCurrentUser() etc

@t-moe
Copy link
Collaborator Author

t-moe commented Jul 12, 2016

Yes it's implemented but not in the typescript references...
I'm a bit new to Typescript:
How can I access properties which are not defined in the references? (=prevent the compiler error)

EddyVerbruggen added a commit that referenced this issue Jul 12, 2016
@EddyVerbruggen
Copy link
Owner

Ah OK, makes sense. I've just added it to the TS definition and pushed it to this repo. Will be on npm with the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants