[No QA] Restore commented-out SAML redirect to signin code#89680
[No QA] Restore commented-out SAML redirect to signin code#89680neil-marcellini merged 3 commits intomainfrom
Conversation
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Covers the case where reauthenticate() is called with no credentials,
verifying that it calls redirectToSignIn('No credentials available') and
releases the network authenticating state instead of proceeding to call
Authenticate with undefined credentials.
Co-authored-by: Cursor <cursoragent@cursor.com>
…sionTest Replaces the standalone ReauthenticationTest file with a single focused test in the existing SessionTest suite. Calls reauthenticate() directly (no API stack needed) — after beforeEach Onyx.clear(), NetworkStore credentials are null, which is the exact condition the fix guards against. Co-authored-by: Cursor <cursoragent@cursor.com>
|
@neil-marcellini Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
trjExpensify
left a comment
There was a problem hiding this comment.
Adds back some temp commented out code.
|
Simple uncommenting, no reviewer checklist or C+ needed. |
|
🚧 @neil-marcellini has triggered a test Expensify/App build. You can view the workflow run here. |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/neil-marcellini in version: 9.3.68-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes are required for this PR. The changes are internal only — restoring commented-out reauthentication logic in |
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.3.68-3 🚀
|
Explanation of Change
Restoring code that was commented out during
#fireroom-2026-01-28-user-signout, but never added back. It was not the root cause (see email w/ subject line[Post Mortem] Many Expensifiers were signed out of NewDot, the root cause was in Onyx).Fixed Issues
(partial) #89613
Tests
Unfortunately this can't be trivially retested manually (need an invalidated SAML login), but fortunately we're just adding back code that was meant to be removed temporarily, but which due to an oversight on my part was never added back. So I think the bar for testing can be lower on this one.
Add an automated test.
Offline tests
None.
QA Steps
n/a - we'll follow up in #89613
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari