Skip to content

Commit

Permalink
Merge pull request #26839 from Expensify/marcaaron-addLogForDoza
Browse files Browse the repository at this point in the history
  • Loading branch information
cead22 authored Sep 18, 2023
2 parents 9c8ea24 + 58efdcb commit ea5f461
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/libs/actions/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,15 @@ function beginDeepLinkRedirect(shouldAuthenticateWithCurrentAccount = true) {

// eslint-disable-next-line rulesdir/no-api-side-effects-method
API.makeRequestWithSideEffects('OpenOldDotLink', {shouldRetry: false}, {}).then((response) => {
if (!response) {
Log.alert(
'Trying to redirect via deep link, but the response is empty. User likely not authenticated.',
{response, shouldAuthenticateWithCurrentAccount, currentUserAccountID},
true,
);
return;
}

Browser.openRouteInDesktopApp(response.shortLivedAuthToken, currentUserEmail);
});
}
Expand Down

0 comments on commit ea5f461

Please sign in to comment.