-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix can't enable 2FA after login with active Xero connection #50251
Fix can't enable 2FA after login with active Xero connection #50251
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: [email protected] 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🙏 👍
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
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 Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.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