Skip to content
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

One account should be deleted before linking two existing ones #362

Open
Alynva opened this issue Nov 16, 2023 · 0 comments
Open

One account should be deleted before linking two existing ones #362

Alynva opened this issue Nov 16, 2023 · 0 comments

Comments

@Alynva
Copy link

Alynva commented Nov 16, 2023

I'm trying to replicate the example of merging two existing accounts, but I think that the problem is that the docs doesn't explicit says that the prevUser needs to be deleted from Firebase Auth, and not only its data from my "repo", it just says that I need to delete the users's data:

// Delete the user's data now, we will restore it if the merge fails
repo.delete(prevUser);

And it says that it would be restored if necessary, but it doesn't restore the actual user that should be deleted beforehand. But to restore it we would need the prevUser credential, that wouldn't be valid anymore?! Idk...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant