Skip to content

Replace local OAuth with the shared oauth-core package - #878

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-7424-oauth-core-main
Sep 10, 2026
Merged

Replace local OAuth with the shared oauth-core package#878
TheGreatAxios merged 2 commits into
mainfrom
cl-7424-oauth-core-main

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Local src/auth/oauth is gone; PKCE, login, refresh, and token store come from @corbits/oauth-core
  • xAI login and refresh use @corbits/xai-provider; the host keeps TUI, callback HTML, billing/usage, and settings paths
  • Callback page copy is injected from branding so nothing under src/auth imports branding.ts
  • Codex ChatGPT login is rewired onto oauth-core only; it does not switch to @corbits/codex-provider on this branch

Verification

  • bun run typecheck and bun run build pass
  • Auth tests pass (bun test ./src/auth plus Codex/xAI session and callback tests)
  • Full suite shows 4 session-store failures (assemble-runtime EROFS on /build-dir, optimized-context-store) outside this diff

Fixes CL-7424

@linear-code

linear-code Bot commented Sep 10, 2026

Copy link
Copy Markdown

CL-7424

xAI login and refresh go through @corbits/xai-provider. Callback
copy is injected from branding so auth does not import it.
@TheGreatAxios
TheGreatAxios force-pushed the cl-7424-oauth-core-main branch from 0dc9b7a to fcd1c2b Compare September 10, 2026 22:27
@TheGreatAxios
TheGreatAxios merged commit 16673f3 into main Sep 10, 2026
8 of 9 checks passed
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