Skip to content

How to update a user's email now that updateEmail(to: email) is deprecated #12185

Closed
@yqiang

Description

@yqiang

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 use sendEmailVerification(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

  1. Install Firebase SDK for iOS
  2. Call the updateEmail(to: email) method.
  3. See warning in Xcode

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 snippet
Replace this line with the contents of your Package.resolved.

If using CocoaPods, the project's Podfile.lock

Expand Podfile.lock snippet
Replace this line with the contents of your Podfile.lock!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      close