-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Desktop - Login - Unable to enter the 2FA code or exit the screen #38142
Conversation
@ikevin127 please fix conflict |
I think it's prerequisite to login any account on web. Otherwise, open desktop app prompt never appears. |
When solving the conflict I ended up removing my |
@situchan can you please prioritize this 🙇 thank you |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop
2fa.mov
no.2fa.mov |
@ikevin127 please merge main |
@situchan Merged main. |
I am not able to get open desktop app prompt even when logged in status. (seems like recent regression) I had to disable this line along with
@ikevin127 what about you? |
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.
works well on both 2fa and no 2fa cases
@situchan I tested the implementation after the merge with main and it still works as expected for me, following the steps mentioned in #34177 (comment). |
yes, works well on staging link but not dev link To test open desktop app redirect on dev, this is the only line we should disable:
|
@ikevin127 @situchan to confirm, everything works well? |
@mountiny Everything works as expected on my side! situchan also said:
|
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.
Thanks
@mountiny looks like this was merged without a test passing. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Tests were passing, gaslighter |
🚀 Deployed to staging by https://github.com/mountiny in version: 1.4.56-0 🚀
|
🚀 Deployed to production by https://github.com/yuwenmemon in version: 1.4.56-8 🚀
|
Details
We're using desktop platform-specific
desktopLoginRedirect
function to pop the navigation stack to top afterSession.signInWithValidateCode
is called - doing this allows performing login for both 2FA and non-2FA accounts on desktop app, where there's no multi-tab functionality (like on web), coming from the web prompt (Open with New Expensify).Fixed Issues
$ #34177
PROPOSAL: #34177 (comment)
Important
This PR's changes only affect the Desktop app, all other platforms are not affected.
This being said, the Test steps don't apply for all other platforms and Screenshots/Videos only demonstrate the current 2FA flow for all other platforms.
Tests
Prerequisite: User must be logged into web app as User A.
staging.
as a prefix, eg. email magic link:https://new.expensify.com/v/15879736/903350
will becomehttps://staging.new.expensify.com/v/15879736/903350
Note
In case the above steps don't work for you, try the steps mentioned in #34177 (comment) as these will work 100% of the time.
Offline tests
TLDR: same as Tests.
Prerequisite: User must be logged into web app as User A.
staging.
as a prefix, eg. email magic link:https://new.expensify.com/v/15879736/903350
will becomehttps://staging.new.expensify.com/v/15879736/903350
Note
In case the above steps don't work for you, try the steps mentioned in #34177 (comment) as these will work 100% of the time.
QA Steps
TLDR: same as Tests.
Prerequisite: User must be logged into web app as User A.
staging.
as a prefix, eg. email magic link:https://new.expensify.com/v/15879736/903350
will becomehttps://staging.new.expensify.com/v/15879736/903350
Note
In case the above steps don't work for you, try the steps mentioned in #34177 (comment) as these will work 100% of the time.
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 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.mov
Android: mWeb Chrome
android-mweb.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mov