-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How to update a user's email now that updateEmail(to: email)
is deprecated
#12185
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
updateEmail(to: email)
is deprecatedupdateEmail(to: email)
is deprecated
Hi @yqiang, upon checking the docs, you need to use the |
@rizafran Hi - thanks for the quick reply. In my particular use case, I'm using Sign in With Apple and passing the email I get from that to the |
Hi @yqiang can you describe and explain your workflow / code logic so we can better help you? Do you create an account randomly with email password, then signInWithApple and then updateEmail? |
@Xiaoshouzi-gh Sure. Here's the workflow:
|
Hi - I was wondering if there's an update on this issue? |
Hey @yqiang. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @yqiang if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
It is very interesting to remove such a needed feature. Is this complexity really needed? I can update the user's password, but I still haven't found an equivalent for email. |
Description
We just upgraded our Firebase SDK to the latest version and are receiving a warning that the method
updateEmail(to: email)
has been deprecated. The warning suggests that we usesendEmailVerification(beforeUpdatingEmail email: String)
instead.For our user case however, we don't want to send a verification email, but we just want to set the users email manually.
It looks like the relevant pull request is this one: Email enumeration protection related error and doc updates #12081
What is the recommended way to do this now that the above method has been deprecated?
Reproducing the issue
updateEmail(to: email)
method.Firebase SDK Version
10.19.0
Xcode Version
15.0
Installation Method
Swift Package Manager
Firebase Product(s)
Authentication
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippetReplace this line with the contents of your Package.resolved.
If using CocoaPods, the project's Podfile.lock
Expand
Podfile.lock
snippetReplace this line with the contents of your Podfile.lock!
The text was updated successfully, but these errors were encountered: