Skip to content

fix(profiles): refresh selected profile credentials#500

Open
isac322 wants to merge 2 commits into
rynfar:mainfrom
isac322:fix/profile-token-refresh
Open

fix(profiles): refresh selected profile credentials#500
isac322 wants to merge 2 commits into
rynfar:mainfrom
isac322:fix/profile-token-refresh

Conversation

@isac322
Copy link
Copy Markdown
Contributor

@isac322 isac322 commented May 8, 2026

Summary

  • Route proactive, reactive, manual, and background OAuth refresh through the selected Claude Max profile's credential store instead of always using the default Claude store.
  • Scope in-flight OAuth refresh deduplication by credential store so separate profiles refresh independently while duplicate refreshes for the same store still coalesce.
  • Add regression coverage for /auth/refresh with x-meridian-profile to prove only the requested profile credentials are updated.

Tests

  • bun test src/__tests__/profile-token-refresh-route.test.ts src/__tests__/token-refresh.test.ts src/__tests__/token-refresh-profile.test.ts
  • bun run typecheck

Closes #499

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.

Profile-scoped OAuth refresh appears to use the default Claude credential store

1 participant