Skip to content

Instantly share code, notes, and snippets.

@pavan5208
Last active July 18, 2021 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pavan5208/c87abca2f247c743668501dcdb1e2468 to your computer and use it in GitHub Desktop.
Save pavan5208/c87abca2f247c743668501dcdb1e2468 to your computer and use it in GitHub Desktop.
fun getCurrentUserInfo(){
val user = Firebase.auth.currentUser
user?.let {
// Name, email address, and profile photo Url
val uid = user.uid
val name = user.displayName
val email = user.email
val photoUrl = user.photoUrl
val emailVerified = user.isEmailVerified
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment