Skip to content

Firebase unlink account Identifier issue  #300

Closed
@moazkh60

Description

@moazkh60

Environment

  • Xcode version: 8.3.3
  • Firebase SDK version: 4.0.4__
  • Library version: 4.0.0_
  • Firebase Product: _____ auth

Problem

I am linking different social media accounts using

user.link(with: credential, completion: { (user, error) in }
and it works successfully and the identifier in my backend authentication section changes to the newly set account email. That is fine, but whenever I unlink the account using

user.unlink(fromProvider: provider) { (user, error) in }
The email is not changed back to the other linked account.

Steps to reproduce:

What happened? How can we make the problem occur?
This could be a description, log/console output, etc.

  1. [email protected] (Facebook account) -- identifier = "[email protected]"
  2. Now I linked [email protected] (Gmail account) -- identifier = "[email protected]"
  3. But when I unlink the gmail account the identifier should be now be "[email protected]"
  4. Here is the issue the identifier doesn't change back to facebook account "[email protected]" as it should. It remains "[email protected]" even though gmail is unlinked.
  5. On android every thing works perfectly and identifier is changed back. The issue is only in iOS.

Relevant Code:

user.link(with: credential, completion: { (user, error) in }
user.unlink(fromProvider: provider) { (user, error) in }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions