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

Tutorial: Handle auth __after__ we sync #4108

Merged
merged 1 commit into from
May 9, 2024
Merged

Conversation

umpox
Copy link
Contributor

@umpox umpox commented May 9, 2024

Description

OK, I think this is finally the issue with the tutorial race condition:

  1. We call handleFirstEverAuthentication, which kick starts the tutorial logic (which eventually evals a feature flag)
  2. We call this.storeAuthInfo

This logic meant the feature flag call could have happened before the auth info was stored, so it would incorrectly get the feature flag for the user, and then we would cache this value.

Test plan

Verified by manually modifying the code to force storeAuthInfo to always happen after a delay

Verified that switching this logic works without the delay

@umpox umpox requested a review from abeatrix May 9, 2024 09:05
@umpox umpox requested a review from a team May 9, 2024 09:08
@umpox umpox merged commit 0e41a95 into main May 9, 2024
19 checks passed
@umpox umpox deleted the tr/handle-first-auth-after-sync branch May 9, 2024 09:18
umpox added a commit that referenced this pull request May 9, 2024
@umpox umpox mentioned this pull request May 9, 2024
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

Successfully merging this pull request may close these issues.

2 participants