auth: remove dead resolveAuthHostToken; flag RepoScopedToken non-refresh

main

Commit

toothbrush3mo ago

resolveAuthHostToken had no production callers (tests only) — drop it and its dedicated tests. Keep the shared token-manager test helpers (authMemStore / saveCoreToken / newResolveTestManager) that the data-API resolution tests in activity_cmd_test.go depend on.

Rewrite the RepoScopedToken doc comment: it still does a direct, non-refreshing STS exchange, and its old "device flow stores no refresh token" rationale is now stale (login requests offline_access and persists a refresh token). Mark it as slated for the COR-395 rework.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: cb812912363c

Checkpoints

Audit COR-389 Auth Paths and Token Resolution

Claude CodeOpus 4.8[1m]
View session
Checkpoint 1