Closed
Description
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.
- [email protected] (Facebook account) -- identifier = "[email protected]"
- Now I linked [email protected] (Gmail account) -- identifier = "[email protected]"
- But when I unlink the gmail account the identifier should be now be "[email protected]"
- 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.
- 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 }