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

[$250] Desktop - User remains logged in after logging out on desktop app #50560

Open
1 of 6 tasks
IuliiaHerets opened this issue Oct 10, 2024 · 14 comments
Open
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Oct 10, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 9.0.47-1
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): applausetester+kh0710002@applause.expensifail.com
Issue reported by: Applause Internal Team

Action Performed:

  1. Launch New Expensify desktop app.
  2. Log out if logged in.
  3. Log in to New Expensify on Chrome.
  4. After login, refresh the page on Chrome.
  5. Click Open New Expensify.
  6. On desktop app, sign out.

Expected Result:

App will redirect to login screen after signing out.

Actual Result:

App is unable to sign out. User remains signed in after signing out.

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6630614_1728558272176.20241010_190248.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021844415362292582702
  • Upwork Job ID: 1844415362292582702
  • Last Price Increase: 2024-10-10
Issue OwnerCurrent Issue Owner: @ahmedGaber93
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. DeployBlocker Indicates it should block deploying the API labels Oct 10, 2024
Copy link

melvin-bot bot commented Oct 10, 2024

Triggered auto assignment to @carlosmiceli (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Oct 10, 2024

Triggered auto assignment to @sakluger (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Oct 10, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Oct 10, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@carlosmiceli carlosmiceli added the External Added to denote the issue can be worked on by a contributor label Oct 10, 2024
@melvin-bot melvin-bot bot changed the title Desktop - User remains logged in after logging out on desktop app [$250] Desktop - User remains logged in after logging out on desktop app Oct 10, 2024
Copy link

melvin-bot bot commented Oct 10, 2024

Job added to Upwork: https://www.upwork.com/jobs/~021844415362292582702

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Oct 10, 2024
Copy link

melvin-bot bot commented Oct 10, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 (External)

@carlosmiceli
Copy link
Contributor

This one is tricky, I'm pretty sure it's FE related but just in case will leave both labels for now. While I look for possible PRs that created this, I'm adding external to see if contributors can start looking into a solution.

@carlosmiceli
Copy link
Contributor

Ok, found the PR that caused it, we should revert this one: https://github.com/Expensify/App/pull/50278/files

@ishpaul777
Copy link
Contributor

#50596 revert is in progress

@pecanoro pecanoro removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Oct 10, 2024
@carlosmiceli
Copy link
Contributor

Hey @lakchote assigning you so you can decide what we should do here and when :)
Let me know if I can help somehow!

@thienlnam thienlnam removed the DeployBlockerCash This issue or pull request should block deployment label Oct 10, 2024
@carlosmiceli carlosmiceli added Daily KSv2 and removed Hourly KSv2 labels Oct 10, 2024
@carlosmiceli carlosmiceli removed their assignment Oct 10, 2024
@wildan-m
Copy link
Contributor

@lakchote @thesahindia The error occurred because I changed "withOnyx" to "useOnyx" in AuthScreen, unrelated to the long loading change.

Do you think something wrong with my migration code?

https://github.com/Expensify/App/pull/50278/files#diff-8f7b7e735d34deb43e8933877150f471e9abd69533161a1922e96be7e876685c

@lakchote
Copy link
Contributor

@lakchote @thesahindia The error occurred because I changed "withOnyx" to "useOnyx" in AuthScreen, unrelated to the long loading change.

Do you think something wrong with my migration code?

https://github.com/Expensify/App/pull/50278/files#diff-8f7b7e735d34deb43e8933877150f471e9abd69533161a1922e96be7e876685c

Nothing strange pops out from this, by giving it a first look.

This must be an edge case, as it just happens for Desktop. Your best bet would be to debug the session's value when logging out.

@wildan-m
Copy link
Contributor

@lakchote is ok to skip onyx migration for our long loading PR? after the onyx migration, The value of onyx params is the same, but the order of calls behave differently.

Before: The logout API called without calling other API.
After: The logout API called with signInWithLiveToken API, causing the user re-login before logout process completed.

I guess that will have different root cause and will require further analysis.

To reproduce:

Migrate withOnyx to useOnyx in AuthScreen and then perform the reproduction steps in this issue.

@thesahindia
Copy link
Member

thesahindia commented Oct 11, 2024

I believe the migration should be handled in a different ticket since it requires more digging. We were considering managing the migration for sign-in/sign-out flows separately.

Quoting Rory's message: "I wouldn't be opposed to doing a dedicated migration issue for a few components where we anticipate issues, such as Expensify.tsx and sign-in/sign-out flows." (thread)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

10 participants