[test] Cover stream API authentication failures
Labels: testing, frontend, points: 150 File/location: frontend/src/lib/api/streams.ts
Description: 401, 403, and expired-session behavior lacks focused client tests.
Acceptance Criteria:
- [ ] Add deterministic tests for the documented success and failure paths, including boundary inputs and dependency failures.
- [ ] Run the new tests in the corresponding CI suite and assert the public behavior and error contract.
Notes: This is a focused regression gap for the cited module; it was not covered by the existing test files reviewed during the sweep.
@Micheal1605 has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
After checking the task requirements, I have a good understanding of what's expected. I'm confident I can work on a solution that meets the requirements.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Micheal1605 to this issue.
@dannyxzb has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer, I've reviewed the issue and the linked discussion. The fix should be straightforward. Please assign this issue to me. I'd love to work on it.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @dannyxzb to this issue.
@Ikechukwu-Patrick has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello maintainer, please i would love to work on this issue. I have reviewed it, it's something i can resolve.
Please maintainer, i need this task.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Ikechukwu-Patrick to this issue.
@Killerjunior has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi maintainer, I have read and understood the issue requirements and checked the necessary documentation. I’m confident I can work on this task effectively and deliver a proper solution.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Killerjunior to this issue.
@Simbabi has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hi Maintainer, I'd like to take this. The important thing to pin down is that a 401 and a 403 are different failures: an expired or missing session should surface as an authentication error the app can act on, while an authenticated user hitting a 403 should surface as a distinct permission error and not trigger a sign-out or a retry. I'd read
streams.tsto see how each is handled today and write the tests against that contract, asserting theAuthorizationheader on the outgoing request, that auth failures are never retried, that no token ever appears in an error message, and that an expired session mid-listing doesn't return partial data.I work in TypeScript and Vitest daily, so the tests would mock the fetch layer for full determinism and run in the existing frontend suite with no CI changes. It's a contained change, so I can have a PR up today. Could you assign this to me?
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Simbabi to this issue.
@timiturn3r has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hey Maintainer, I have gone through the details of the issue and i am capable of resolving it, I would love to be assigned to work on it ASAP.please assign me!! ETA: 4 hours
ℹ️ Repo Maintainers: To accept this application, review their application or assign @timiturn3r to this issue.
@CryptoverseOG has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
Hello Maintainer, I’ve taken a close look at this issue and understand the work involved. I’m ready to dedicate the necessary time and would appreciate the chance to work on it.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @CryptoverseOG to this issue.
@OlayiwolaSherrifSalawu has applied to work on this issue as part of the Stellar Wave Program's 10th wave.
I would like to work on this issues
ℹ️ Repo Maintainers: To accept this application, review their application or assign @OlayiwolaSherrifSalawu to this issue.
Congratulations, @OlayiwolaSherrifSalawu! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on October 22, 2026.
🧑💻 @OlayiwolaSherrifSalawu: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been marked as completed by a Drips Wave moderator for @OlayiwolaSherrifSalawu as part of the Stellar Wave Program's 10th Wave 🥳
Moderator's reason: [Auto-assessed] The PR is successfully merged (mergedAt: 2026-10-28T13:26:43Z), closing issue #1772. The contributor added comprehensive Vitest unit tests in frontend/src/lib/api/streams.test.ts covering 401, 403, and expired-session behaviors as requested in the issue acceptance criteria.
😎 @OlayiwolaSherrifSalawu: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.
ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.