Skip to content

[$500] Login - Can't go back after trying to log in using another tab with invalid code #34584

Closed

Description

@lanitochka17

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: 1.4.25-7
Reproducible in staging?: Y
Reproducible in production?: N
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to https://staging.new.expensify.com/
  2. Enter an email and tap on "Continue"
  3. Go to email inbox and copy the magic link
  4. Modify the last portion of the link (magic code) and change it to staging
  5. Go to link on another tab (code expired page should be displayed)
  6. Return to original tab and tap on "Go back"

Expected Result:

The user should be taken to the main login page

Actual Result:

The "Go back" button is unresponsive

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

bandicam.2024-01-16.17-57-55-685.mp4
Bug6344346_1705414304688.Ojan2944_1_.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f8455532fbcf8436
  • Upwork Job ID: 1747291164819349504
  • Last Price Increase: 2024-01-16

Activity

  1. added
    DeployBlockerCash
    on Jan 16, 2024
  2. github-actions commented on Jan 16, 2024

    @github-actions
    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.
  3. melvin-bot commented on Jan 16, 2024

    @melvin-bot

    Triggered auto assignment to @AndrewGable (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

  4. kbecciv commented on Jan 16, 2024

    @kbecciv

    Issue is not reproducible in production

    bandicam.2024-01-16.18-00-28-104.1.mp4
  5. added
    External
    on Jan 16, 2024
  6. changed the title [-]Login - Can't go back after trying to log in using another tab with invalid code[/-] [+][$500] Login - Can't go back after trying to log in using another tab with invalid code[/+] on Jan 16, 2024
  7. melvin-bot commented on Jan 16, 2024

    @melvin-bot
  8. added
    Help Wanted
    on Jan 16, 2024
  9. melvin-bot commented on Jan 16, 2024

    @melvin-bot

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

  10. dummy-1111 commented on Jan 16, 2024

    @dummy-1111
    Contributor

    This looks like a regression of this PR #33554 (Onyx update)

  11. ikevin127 commented on Jan 16, 2024

    @ikevin127
    Contributor

    Proposal

    Please re-state the problem that we are trying to solve in this issue

    The "Go back" button is unresponsive after trying to log in using another tab with invalid code.

    What is the root cause of that problem?

    function clearSignInData() {
    Onyx.multiSet({
    [ONYXKEYS.ACCOUNT]: null,
    [ONYXKEYS.CREDENTIALS]: null,
    });
    }

    The Onyx.multiSet in the block above doesn't work as expected, even though it gets called, the keys are not set to null.

    What changes do you think we should make in order to solve the problem?

    If we're looking for a quick, working solution then instead of Onyx.multiSet we should use Onyx.set twice.
    Once we unblocked deploy, we should figure out why Onyx.multiSet doesn't work in this edge case.

    Videos

    MacOS: Chrome / Safari
    Screen.Recording.2024-01-16.at.19.28.56.mov
  12. mountiny commented on Jan 16, 2024

    @mountiny
    Contributor

    @ikevin127 Are you suggesting this is repro in production too? because this code has been around for a while

  13. situchan commented on Jan 16, 2024

    @situchan
    Contributor

    The Onyx.multiSet in the block above doesn't work as expected, even though it gets called, the keys are not set to null.

    It's possible that the root cause came from recent Onyx update.

  14. ikevin127 commented on Jan 16, 2024

    @ikevin127
    Contributor

    @mountiny It's only reproducible on staging / dev, it didn't get to production yet.

  15. mountiny commented on Jan 16, 2024

    @mountiny
    Contributor

    I am trying a test build on the revert of the onyx bump #34596

  16. added
    Reviewing
    Weekly
    and removed
    Hourly
    on Jan 16, 2024
  17. AndrewGable commented on Jan 16, 2024

    @AndrewGable
    Contributor

    @mountiny fixed with his revert

  18. removed
    DeployBlockerCash
    on Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

EngineeringExternalHelp WantedReviewingWeekly

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions