Skip to content

Instantly share code, notes, and snippets.

@thatfiredev
Created April 25, 2020 19:53
Show Gist options
  • Save thatfiredev/befc7a7824b33ce27d4803db5ba6618e to your computer and use it in GitHub Desktop.
Save thatfiredev/befc7a7824b33ce27d4803db5ba6618e to your computer and use it in GitHub Desktop.
What's New in Firebase 01
val firebaseAuth = Firebase.auth // Equivalent to FirebaseAuth.getInstance()
// Update a user's profile
// https://firebase.google.com/docs/auth/android/manage-users#update_a_users_profile
firebaseAuth.currentUser?.updateProfile(userProfileChangeRequest {
displayName = "Jane Doe"
photoUri = Uri.parse("https://profile.picture.url")
})
// Passing state/continue URL in email actions
// https://firebase.google.com/docs/auth/android/passing-state-in-email-actions#passing_statecontinue_url_in_email_actions
firebaseAuth.currentUser?.sendEmailVerification(actionCodeSettings {
url = "https://my_custom.url"
iosBundleId = "com.example.ios"
setAndroidPackageName("com.example.android", false, null)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment