-
Notifications
You must be signed in to change notification settings - Fork 124
Remove deprecated Auth function from C++ SDK #1767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Matching a change made in the Unity SDK, this commit removes: - Auth: `User::UpdateEmail` and `User::UpdateEmailLastResult` Updated the release notes to reflect this change.
❌ Integration test FAILEDRequested by @jonsimantov on commit 76cf4a7
Add flaky tests to go/fpl-cpp-flake-tracker |
Matching a change made in the Unity SDK, this commit removes: - Auth: `User::UpdateEmail` and `User::UpdateEmailLastResult` methods. Integration tests in `ta/auth/it/src/integration_test.cc` were updated: - Removed a call to `UpdateEmail` on an invalid user. - Commented out calls to `UpdateEmail` in `TestUpdateEmailAndPassword` to allow build to pass. Further work is needed to update this test to the new email verification flow. Updated the release notes to reflect this change.
@@ -767,16 +762,16 @@ TEST_F(FirebaseAuthTest, TestUpdateEmailAndPassword) { | |||
EXPECT_TRUE(user.is_valid()); | |||
|
|||
// Update the user's email and password. | |||
const std::string new_email = "new_" + email; | |||
WaitForCompletion(user.UpdateEmail(new_email.c_str()), "UpdateEmail"); | |||
// const std::string new_email = "new_" + email; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove instead of commenting out
Matching a change made in the Unity SDK, this commit removes: - Auth: `User::UpdateEmail` and `User::UpdateEmailLastResult` methods. Integration tests in `ta/auth/it/src/integration_test.cc` were updated: - Removed a call to `UpdateEmail` on an invalid user. - Removed commented-out calls to `UpdateEmail` in `TestUpdateEmailAndPassword`. Updated the release notes to reflect this change.
// const std::string new_email = "new_" + email; | ||
// WaitForCompletion(user.UpdateEmail(new_email.c_str()), "UpdateEmail"); | ||
// Update the user's password. | ||
// Email update functionality has been changed and the old UpdateEmail method removed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just remove this second part completely.
… all tests. To match a change made in the Unity SDK, I will remove: - Auth: `User::UpdateEmail` and `User::UpdateEmailLastResult` methods. I will also remove all usages of the deprecated method from the integration tests (`auth/integration_test/src/integration_test.cc`) and unit tests (`auth/tests/user_test.cc` and `auth/tests/desktop/user_desktop_test.cc`). I will then update the release notes to reflect this change.
… all associated tests. To align with a recent change in the Unity SDK, I will remove the `User::UpdateEmail` and `User::UpdateEmailLastResult` methods from the authentication functionality. This will also involve removing all uses of the deprecated method from the integration and unit tests. Finally, I will update the release notes to reflect this change.
This commit removes the deprecated `User::UpdateEmail` method from the Auth SDK, integration tests, unit tests, and sample code. BREAKING CHANGE: `User::UpdateEmail` has been removed. Use `User::SendEmailVerificationBeforeUpdatingEmail` instead.
Pull request was closed
Description
Matching a change made in the Unity SDK, this commit removes:
User::UpdateEmail
andUser::UpdateEmailLastResult
Updated the release notes to reflect this change.
Testing
Integration tests.
Type of Change
Place an
x
the applicable box:Notes
Release Notes
section ofrelease_build_files/readme.md
.