-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
bug: Crash on attempted signup with email prior associated with updated user #1644
Comments
@rjbx thanks this is a really interesting edge case! @lsirac @malcolmdeck when a user calls |
Yeah, the old email is reserved and you can't use it. When changing from A to B, a revocation link is sent to A and A is reserved so that someone can't just create an account with it. |
Also to be noted - if you go A -> B, and then B -> C, A will still be
reserved as the initial_email, but B can be used again. (IIRC)
…On Mon, Jun 3, 2019 at 5:00 PM Leo ***@***.***> wrote:
Yeah, the old email is reserved and you can't use it. When changing from A
to B, a revocation link is sent to A and A is reserved so that someone
can't just create an account with it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1644?email_source=notifications&email_token=AFUXYK6AXL3OLYAK4DOTUZ3PYWWBHA5CNFSM4HSC2UZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODW3AN5Q#issuecomment-498468598>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFUXYK2BHWSPXURC2ZV3UBDPYWWBHANCNFSM4HSC2UZQ>
.
|
Thanks @samtstern and @lsirac for the feedback. I understand reservation is necessary to preclude the old email address from subsequent registration, which would invalidate the existing revocation link. A possible feature addition might then entail including a confirmation link in the same email message in order to unreserve the old email address. When registering a reserved email address, would any of the following make sense?
|
Looking at the Firebase Auth REST API there are two fields returned from
However the Android SDK only provides the former, not the latter: That means when we fetch the providers we can't see |
Thanks @samtstern for implementing a fix. I repeated the process of successfully invoking This issue is being marked closed subject to no further findings. Please comment if your experience is different or if you identify another edge case. |
Welcome to FirebaseUI and thanks for submitting an issue!
Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.
If not, please feel free to fill in the following info so we can help faster!
Step 1: Are you in the right place?
Step 2: Describe your environment
Relevant build dependencies:
Project-level
App-level
Step 3: Describe the problem:
I reproduce this bug on attempting to sign up using the email address that was previously associated with a
FirebaseUser
before a successful call toupdateEmail
. The same response is generated at the FirebaseUI sign up screen after both a successful call tosignOut
with theFirebaseAuth
instance associated with the updatedFirebaseUser
as well as deleting and re-installing the application.Steps to reproduce:
updateEmail
on aFirebaseUser
a. Successfully invoke
signOut
on theFirebaseAuth
instance associated with the sameFirebaseUser
, orb. Delete and reinstall the application
updateEmail
on, the sameFirebaseUser
Observed Results:
The screen becomes blank before reloading the initial FirebaseUI sign in screen.
onActivityResult
is never invoked. Concurrently, the following logcat output is produced:Expected Results:
onActivityResult
is invoked with a result code to indicate the status of the request.Relevant Code:
The text was updated successfully, but these errors were encountered: