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

Fix broken auth params when opening desktop App from deeplink. #189

Merged
merged 2 commits into from
Jan 31, 2025

Conversation

Kicu
Copy link
Member

@Kicu Kicu commented Jan 30, 2025

Fixes: Desktop - Open New Expensify - Web user is not automatically logged into the Desktop app Expensify#49539 (comment)

Explanation of Change

Huge help from @WojtekBoman on this one.

When we open desktop app from web deeplink, from a different user account, we go through the flow of logging current user out and redirecting to LogInWithShortLivedAuthTokenPage.
Because of resetting navigation after logout, we were always clearing route params, but in this flow the authToken is in route params.
Because of that once we navigated to LogInWithShortLivedAuthTokenPage:

  • the params were empty
  • token was missing
  • there was nowhere to backTo

This PR preserves params for everything but ReportSplit navigator.

Fixed Issues

@Kicu Kicu requested a review from adamgrzybowski January 30, 2025 09:54
@Kicu Kicu merged commit 82b4f9d into poc/split-navs Jan 31, 2025
7 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants