Skip to content

Handle LinkedIn auth redirects explicitly#3

Open
Antiokh wants to merge 1 commit into
bcharleson:mainfrom
Antiokh:fix-manual-redirect-auth
Open

Handle LinkedIn auth redirects explicitly#3
Antiokh wants to merge 1 commit into
bcharleson:mainfrom
Antiokh:fix-manual-redirect-auth

Conversation

@Antiokh

@Antiokh Antiokh commented Jun 24, 2026

Copy link
Copy Markdown

Summary

  • disable automatic fetch redirect following for LinkedIn API requests
  • classify 3xx responses as auth or challenge failures instead of surfacing a generic fetch error
  • preserve a clearer redirect error for unexpected locations

Why

LinkedIn can answer Voyager API requests with redirects when a session is expired or challenged. In Node's fetch implementation, automatic redirect following can loop until it fails with
edirect count exceeded, which the CLI was reporting as etch failed. This change makes login and status --verify return actionable auth feedback instead.

Verification

  • npm run build
  • npm run typecheck
  • reproduced etch failed before the change with /voyager/api/me
  • after the change, status --verify returns session_valid: false with an auth message instead of a network error

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