-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$500] Web - Settings - Unable to log out after being redirected to ND from OD by clicking on workspace #33731
Comments
Job added to Upwork: https://www.upwork.com/jobs/~0152728ca06936b7d2 |
Triggered auto assignment to @MitchExpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.User is not getting signed out after being redirected to ND from OD What is the root cause of that problem?We are using a transition url with shortLivedAuthToken to redirect from oldDot to newDot. An App/src/libs/Navigation/AppNavigator/AuthScreens.tsx Lines 268 to 272 in 5c5c862
The App/src/pages/LogOutPreviousUserPage.js Lines 57 to 65 in 5c5c862
When user closes the Here is the step by step explanation of how transition url works.
If you see above steps it is quite evident that the transition should have been from /transition -> /r/reportId (Home) -> /bank-account. The reason user goes back to transition url is because the home route is not set before navigating directly to a drawer screen. Thats the reason why user needs to navigate to ROUTES.HOME before navigating to an exitRoute. This could further be verified by simply closing the modal and checking the url in address bar. Screen.Recording.2024-01-11.at.10_out.mp4What changes do you think we should make in order to solve the problem?We should reset the transition route before navigating to exitTo route in if (exitTo && exitTo !== ROUTES.WORKSPACE_NEW && !props.account.isLoading && !isLoggingInAsNewUser) {
Navigation.isNavigationReady().then(() => {
Navigation.goBack(ROUTES.HOME);
Navigation.navigate(exitTo);
});
} Result fix.mp4What alternative solutions did you explore? (Optional)None (edited) |
Expected right now |
@MitchExpensify As explained in the proposal above this seems to be a bug on client side which re-authenticates the user using the short lived auth token just because we are not clearing the used transition url. This bug will also cause below screen to be shown when user tries to signout when the short lived token has expired. Both of these results are not as per expectation. Could you please shed some light on why this is the expected behaviour at the moment or point to a discussion where this is discussed in detail? |
I initially misunderstood the issue, I think this fits into Wave 9 because its related to the redirect introduced in that wave |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@MitchExpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@abdulrahuman5196 Do you think this looks like it will need to be handled internally? |
Reviewing now |
@aswin-s I am unable to fully understand your proposal. I assume you are saying we using the same exitTo url during transition and during logout as well, which is causing the user to re-signin. |
@abdulrahuman5196 Let me elaborate the series of events once again
If you see above steps it is quite evident that the transition should have been from /transition -> /r/reportId (Home) -> /bank-account. The reason user goes back to transition url is because the home route is not set before navigating directly to a drawer screen. Thats the reason why user needs to navigate to ROUTES.HOME before navigating to an exitRoute. This could further be verified by simply closing the modal and checking the url in address bar. Screen.Recording.2024-01-11.at.10_out.mp4Let me know if you have any further questions. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@MitchExpensify @abdulrahuman5196 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Next step here is for @abdulrahuman5196 to review @aswin-s 's resopnse |
Will be reviewing todAY |
@abdulrahuman5196 Any feedback on above comment? |
|
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@MitchExpensify @abdulrahuman5196 this issue is now 3 weeks old. There is one more week left before this issue breaks WAQ and will need to go internal. What needs to happen to get a PR in review this week? Please create a thread in #expensify-open-source to discuss. Thanks! |
REviewing now. thanks for the detailed explanation. |
The proposal here #33731 (comment) and extended explanation here #33731 (comment) seems reasonable. But still wondering about routing to home and then routing to bank page. @MitchExpensify Could you kindly involve internal engineer worked on Authentication and Session to double confirm, |
This seems like a good question for @marcaaron or @cead22 |
The proposal looks good to me, and it's the only one we have for now that makes this work the way it should. I understand navigating to home feels like a workaround, and if we have a way to set the home route or to remove the transition page from the navigation stack without navigating to home, those could be good fixes too. If we don't have a way to do either or no other way to accomplish this, then navigating to home is better than the bug, so I think we can go with the proposal and add a comment above |
Thank you for the confirmation @cead22 . @aswin-s 's proposal here #33731 (comment) looks good and works well. @aswin-s Kindly update your proposal as well on the new discussions. Would be helpful for future reference. 🎀 👀 🎀 |
Triggered auto assignment to @MariaHCD, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@abdulrahuman5196 Updated my proposal with additional details |
📣 @abdulrahuman5196 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @aswin-s 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@MariaHCD @abdulrahuman5196 I'm unable to reproduce this issue anymore. Looks like it got fixed over here. |
Oh nice catch, I'll defer to @MariaHCD or @abdulrahuman5196 to confirm before closing or not |
Yes. I don't see this issue anymore. |
Nice, since this is no longer reproducible, I'd agree with closing this out. |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.18-4
Reproducible in staging?: Y
Reproducible in production?: Y
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:
Expected Result:
User is logged out and the home screen is displayed
Actual Result:
The page refreshes and the user is still logged in
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6327614_1703779822402.Recording__77.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: