Skip to content

Instantly share code, notes, and snippets.

@javebratt
Created October 7, 2018 16:07
Show Gist options
  • Save javebratt/c775652d279fdcdd3658593d27fb8ffc to your computer and use it in GitHub Desktop.
Save javebratt/c775652d279fdcdd3658593d27fb8ffc to your computer and use it in GitHub Desktop.
async getUserProfile(): Promise<firebase.firestore.DocumentReference> {
const user = await firebase.auth().currentUser;
return firebase.firestore().doc(`/userProfile/${user.uid}`);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment