Fix can't enable 2FA after login with active Xero connection#50251
Fix can't enable 2FA after login with active Xero connection#50251Beamanator merged 5 commits intoExpensify:mainfrom
Conversation
|
@dukenv0307 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] |
|
Bug:
Screen.Recording.2024-10-05.at.11.57.49.mov |
I faced the same problem, do you know the RCA? |
|
We already have an issue for that here: #45572.
Nope, but possibly it's conflicting with the Onyx clears here, not sure. App/src/libs/actions/Session/index.ts Lines 1030 to 1034 in 99f280b |
|
@bernhardoj any updates? |
|
So, the issue is that the app detected that the update from OpenApp is older or the same as the current state by comparing the App/src/libs/actions/OnyxUpdates.ts Lines 108 to 109 in 3777223 In our case, it's the same.
Here is the lastUpdateID of 2FA validation request: 2323138624 Here is the lastUpdateID of OpenApp request: 2323138624 I think BE should return a bigger ID for OpenApp |
Can you take a look at the BE logic? Thanks |
|
@Beamanator Any updates? |
|
Yo thanks for the ping, I was OOO last 4 days - will try to get to this today, if not I'll def get to this tomorrow |
|
Hmm in my head i was thinking that "the same I'm asking internally if this is expected for not |
Hmm, maybe it happens because we already call the first OpenApp when login, but it fails as I mentioned here OpenApp - failed |
Hmm yeah I might have to look into that actually, maybe that will fix our problems all at once |
|
@Beamanator Any updates on this? |
|
Sorry for the delay gents, can either of you run this workflow and let me know when you do so i can investigate the logs?
|
|
@Beamanator I just did it. Email used: bernhard.josephus+0104@gmail.com EDIT: oh, this is the 2nd OpenApp, not the first one. The 1st one isn't recorded.
|
|
Thanks @bernhardoj ! Interesting results, I will post in the issue! |
|
@dukenv0307 I believe we can continue with the PR based on this slack comment. |
|
@bernhardoj Will check it soon |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-03-10.at.11.09.30.movAndroid: mWeb ChromeScreen.Recording.2025-03-10.at.11.05.54.moviOS: NativeScreen.Recording.2025-03-10.at.11.08.38.moviOS: mWeb SafariScreen.Recording.2025-03-10.at.10.58.15.movMacOS: Chrome / SafariScreen.Recording.2025-03-10.at.10.54.25.movMacOS: DesktopScreen.Recording.2025-03-10.at.11.11.39.mov |
|
@bernhardoj Can you please update the test steps and videos/screenshots then I can approve. Thanks |
|
Updated. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Beamanator in version: 9.1.11-1 🚀
|
|
This PR is failing because of issue #58217 |
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.1.12-7 🚀
|








Details
If the user has connected to Xero but the 2FA is disabled, logging in to the app will show the prompt to enable 2FA, but unable to do so.
Fixed Issues
$ #48208
PROPOSAL: #48208 (comment)
Tests
Same as QA Steps
Offline tests
Same as QA Steps
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.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.mp4
Android: mWeb Chrome
android.mweb.mp4
iOS: Native
ios.mp4
iOS: mWeb Safari
ios.mweb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4