Fix Android sign-in flow preventing multiple signInToOldDot calls#69304
Fix Android sign-in flow preventing multiple signInToOldDot calls#69304
Conversation
|
@madmax330 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Requesting a review from @francoisl to unblock testing of other blockers. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeiOS: HybridAppiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
Fix Android sign-in flow preventing multiple signInToOldDot calls (cherry picked from commit ae8fbb1) (cherry-picked to staging by Julesssss)
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.1.99-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/thienlnam in version: 9.1.99-11 🚀
|
|
🚀 Cherry-picked to staging by https://github.com/Julesssss in version: 9.2.0-0 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
|
🚀 Deployed to production by https://github.com/arosiclair in version: 9.2.0-5 🚀
|
Explanation of Change
This PR fixes a bug in the Android sign-in flow where multiple calls to
signInToOldDotcould occur simultaneously. The fix adds a guard clause in thesignInToOldDotAndChooseExperiencefunction to check if theautoAuthStateis alreadySIGNING_IN, preventing duplicate sign-in attempts.The issue occurred when the sign-in process was triggered multiple times before the first attempt completed, leading to race conditions and potential authentication issues on Android devices.
Fixed Issues
$ #69288
Tests
I have tested this a few times on a locally generated release build.
Offline tests
N/A - This change affects the sign-in authentication flow which requires network connectivity.
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop