Skip to content

Magic code screen displayed during sign-in redirection #60908

Description

@Julesssss

Problem

Coming from here, @koko57 noticed that the ValidateLoginPage on web shows inconsistent behaviour. While authenticated on web sometimes Magic Code is displayed, sometimes the Abracadabra page.

User should see the Abracada page and be logged in as expected. Relevant test cases:

1) User is logged out on web and desktop

  • Check if you see log in page on web (to verify you're logged out)
  • Start logging in to the desktop app
  • Go to the mailbox -> click a link (if using redirector; or copy and change the URL)
  • Verify that after clicking or copying/pasting the URL you land on the Magic Code page with the "just sign in here" link
  • Click that link, verify that you're successfully logged in.
  • After that the prompt "Open Electron.app" should appear, click Open app
  • Verify that the user is properly logged in, there is no error.

2) User logged in on web, logging in with the same account on desktop

  • Repeat steps 2 and 3 from the previous case
  • Verify that after clicking or copying/pasting the URL you land on the home page, then repeat steps 6-7 from the previous case.

3) User logged in on web (User A), logging in with a different account (User B) on the desktop

  • Go through the same flow as for CASE 2
  • Verify that on the web the account you're logged in is opened (User A), but in the desktop app you're logged in to the one you started logging in on desktop (User B)

Solution

Lets see if we can locate the cause of this.

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.ImprovementItem broken or needs improvement.InternalRequires API changes or must be handled by Expensify staffWeeklyKSv2

Type

No type

Fields

No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions