Skip to content

[codex] fix login region endpoints#22

Merged
JeelyWu merged 1 commit into
masterfrom
codex/fix-login-region-endpoints
May 16, 2026
Merged

[codex] fix login region endpoints#22
JeelyWu merged 1 commit into
masterfrom
codex/fix-login-region-endpoints

Conversation

@JeelyWu
Copy link
Copy Markdown
Owner

@JeelyWu JeelyWu commented May 16, 2026

Summary

Fix OAuth login so the service endpoints are built from the final region selected during login, instead of the region loaded from the old config before prompting.

Root cause

LoginAuthResolver constructed auth.Service before AuthApp.Login resolved and persisted the selected region. When a user switched from ticktick to dida365, login still used the previous TickTick OAuth endpoints for that run.

Changes

  • Added an optional region-aware auth service factory to AuthApp.
  • Updated cmd/tick login wiring to build the login auth service after the selected region is known.
  • Added a regression test covering a login that switches from ticktick config to dida365.

Validation

  • go test ./...
  • go build ./...
  • go vet ./...

@JeelyWu JeelyWu marked this pull request as ready for review May 16, 2026 07:16
@JeelyWu JeelyWu merged commit d09f523 into master May 16, 2026
1 check passed
@JeelyWu JeelyWu deleted the codex/fix-login-region-endpoints branch May 16, 2026 14:24
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