Skip to content

fix: spurious oauth token requests when we already have a valid token. #2303

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dljsjr
Copy link
Member

@dljsjr dljsjr commented Jul 29, 2025

Type of Change

  • Bug fix

Checklist

  • I have performed a self-review of my code
  • I have commented my code in hard-to-understand areas
  • I have verified my changes by testing with a device or have communicated a plan for testing

Description of Change

There were a handful of situations where the driver was making a request to the cloud for a new copy of the user's Sonos OAuth token, even if the token was cached on the hub and had not yet expired. This attempts to address that.

Summary of Completed Tests

Tested on my personal setup by overriding the driver files directly. Will need to be regression tested by internal QA once this lands on Alpha; the OAuth stuff precludes this from being tested using the PR channel invite.

@dljsjr dljsjr force-pushed the fix/sonos-spurious-oauth-requests branch from 150bf68 to 658dffa Compare July 29, 2025 22:50
Copy link

Copy link

github-actions bot commented Jul 29, 2025

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against 0516d3c

Copy link

github-actions bot commented Jul 29, 2025

Test Results

   68 files    447 suites   0s ⏱️
2 324 tests 2 324 ✅ 0 💤 0 ❌
3 923 runs  3 923 ✅ 0 💤 0 ❌

Results for commit 0516d3c.

♻️ This comment has been updated with latest results.

@dljsjr dljsjr mentioned this pull request Jul 30, 2025
7 tasks
@dljsjr dljsjr force-pushed the fix/sonos-spurious-oauth-requests branch from 658dffa to 0516d3c Compare July 30, 2025 15:23
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.

3 participants