Created
April 25, 2020 19:53
-
-
Save thatfiredev/befc7a7824b33ce27d4803db5ba6618e to your computer and use it in GitHub Desktop.
What's New in Firebase 01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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