Skip to content

[codex] Fix Sense refresh auth fallback#123

Merged
mefree2098 merged 1 commit into
mainfrom
codex/sense-auth-refresh-fallback
May 18, 2026
Merged

[codex] Fix Sense refresh auth fallback#123
mefree2098 merged 1 commit into
mainfrom
codex/sense-auth-refresh-fallback

Conversation

@mefree2098
Copy link
Copy Markdown
Owner

Summary

  • Fall back to full saved Sense email/password authentication when refresh-token renewal fails during API retry.
  • Add regression coverage for the stale refresh-token path that was blocking production sync.

Root Cause

Production could freshly authenticate to Sense with the saved credentials, but the normal sync path stopped after Sense rejected the stored refresh token. That left HomeBrain reporting "Failed to authenticate" even though the password was valid.

Validation

  • node --test server/tests/senseService.test.js
  • npm test --prefix server

@mefree2098 mefree2098 merged commit 8fe16f7 into main May 18, 2026
10 checks passed
@mefree2098 mefree2098 deleted the codex/sense-auth-refresh-fallback branch May 18, 2026 16:21
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.

1 participant