Skip to content

Use the FID from the server if client FID generation fails #1925

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

Merged
merged 4 commits into from
Jul 1, 2019

Conversation

mmermerkaya
Copy link
Contributor

@mmermerkaya mmermerkaya commented Jun 28, 2019

Starting from SDK v0.2.0, the server will start returning a valid FID instead of returning an error if the client tries to register an invalid FID, and the SDK will save that FID to the DB, replacing the invalid one. In case of a failure with client side FID generation, getId will wait for a valid FID from the server before resolving instead of throwing or returning an invalid FID.

@mmermerkaya mmermerkaya requested a review from Feiyang1 June 28, 2019 12:48
@mmermerkaya mmermerkaya changed the title Wait for the FID from the server if client FID generation fails Use the FID from the server if client FID generation fails Jun 28, 2019
@Feiyang1 Feiyang1 assigned mmermerkaya and unassigned Feiyang1 Jul 1, 2019
@mmermerkaya mmermerkaya merged commit 2348a25 into master Jul 1, 2019
@mmermerkaya mmermerkaya deleted the mmermerkaya-fid-generation branch July 1, 2019 17:25
@mmermerkaya mmermerkaya removed their assignment Jul 1, 2019
@firebase firebase locked and limited conversation to collaborators Oct 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants