-
Notifications
You must be signed in to change notification settings - Fork 892
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
reauthenticateWithPopup() method is adding a new user entry in the Firebase Authentication. #4683
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hi @arunraj6, I can't replicate this issue. When you delete the user in step 2, you can't do |
You meant to say, can't do the |
Hi @looptheloop88 , Here in my case, the currently logged-in user is 'myid1@gmail.com'. But in the reauthentication popup, if I tried to use some other account (example: 'myid2@gmail.com') to reauthenticate the user, a new user entry is adding in the Firebase Authentication for the user 'myid2@gmail.com'. |
Yes, sorry about the typo error. I have updated by comment. |
I'm trying to figure out the steps that I need to do to replicate the issue, so please do correct me if I'm wrong here.
Here, I am getting the error below:
Upon checking the Firebase Authentication console, I was able to verify that user B got successfully registered. This should not happen, because there is an error thrown and actually catched by the code implementation. Is this the bug you're referring to? |
Yes exactly, this is the issue I am referring to. Here the error |
No problem, Thank you. |
Hi @arunraj6, thanks for the confirmation. I've filed an internal bug for this issue. I will keep this thread posted for any updates. Thanks! |
You are welcome :) |
To give an update, this behavior is a known issue. This is tracked internally and added to our roadmap, however we can't provide definite timelines or details for when it will be fixed. Please keep an eye out on this issue thread or the Firebase release notes to get more updates in the future. |
@looptheloop88 Any updates on this Issue? |
This issue has already been raised and discussed internally, however we won't be able to get to it immediately. For reference, the internal bug is b/184046641. |
@looptheloop88 Please give us an update. I am facing this issue now. I have not seen any mentions in Firebase release notes. Thank you. |
I do hope this will be fixed soon. |
Describe your environment
Describe the problem
When we reauthenticate a user using Google auth provider, a user is being added to the Firebase Authentication if we use another account to sign in instead of the previously signed-in user.
Steps to reproduce:
signInWithPopup()
method (example user: myid1@gmail.com).myid1@gmail.com
by usingreauthenticateWithPopup()
method.myid2@gmail.com
.Relevant Code:
The proper error message (
The supplied credentials do not correspond to the previously signed in user.
) is coming in the catch block and also a new user is created which can be avoided.The text was updated successfully, but these errors were encountered: