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

Desktop - Login - Magic link shows page with Magic code instead of prompt to open Desktop App #23285

Closed
1 of 6 tasks
kbecciv opened this issue Jul 20, 2023 · 8 comments
Closed
1 of 6 tasks
Assignees
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@kbecciv
Copy link

kbecciv commented Jul 20, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Action Performed:

. Open Desktop App
2. Create new account
3. Got to validation email and copy magic link
4. Open new tab, paste magic link and change it to staging
5. Go to this Magic link

Expected Result:

Prompt to open the Desktop App should appear

Actual Result:

Magic code page loads instead of prompt to open Desktop App

Workaround:

Unknown

Platforms:

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

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.43-1
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
Notes/Photos/Videos: Any additional supporting documentation

Bug6135383_Login-MagicCode-instead-of-Open-Desktop.mp4

Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

View all open jobs on GitHub

@kbecciv kbecciv added the DeployBlockerCash This issue or pull request should block deployment label Jul 20, 2023
@github-actions github-actions bot added the Hourly KSv2 label Jul 20, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

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

@0xmiros
Copy link
Contributor

0xmiros commented Jul 20, 2023

This came from apple sign-in PR and we already agreed to disable opening desktop app on unauthorized pages for now.
cc: @marcochavezf

@marcochavezf
Copy link
Contributor

Hmm we disable them on unauthorized pages thinking that we were not cases where we prompt the user to open the desktop app there, but it seems there's indeed a case for this. @lindboe I'm afraid that we'd need to move the DeeplinkWrapper to PublicScreens again or come up with a solution to use them in both PublicScreens and AuthScreens.

@marcochavezf marcochavezf mentioned this issue Jul 20, 2023
87 tasks
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Hourly KSv2 labels Jul 20, 2023
@iwiznia
Copy link
Contributor

iwiznia commented Jul 20, 2023

Reverting the offending PR

@lindboe
Copy link
Contributor

lindboe commented Jul 20, 2023

Yes, this means we'll need to instead block DeeplinkWrapper from activating on a certain list of routes. I think the ones that make sense are the dedicated desktop sign-in page, and the main sign-in page (to avoid prompting the user to go to the desktop app, then back to the web app if they had wanted to sign in with Apple). I'll try again to confirm in Slack.

@marcochavezf
Copy link
Contributor

Closing out since Apple sign-in PR was reverted

@lindboe
Copy link
Contributor

lindboe commented Jul 20, 2023

I just tried to test this out on prod (new.expensify.com) as well to figure out what we need to support, and I noticed the same behavior of no redirect prompt Firefox on MacOS. Safari does prompt to redirect that link. I'm not sure why the difference yet, as I haven't seen Firefox not trigger a deep link prompt when I would expect one.

edit: I'm told we specifically don't support Firefox, and that is why

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeployBlockerCash This issue or pull request should block deployment Engineering Reviewing Has a PR in review Weekly KSv2
Projects
None yet
Development

No branches or pull requests

6 participants