WSL2 OAuth callback hang during Polar login

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
15/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
typescript

Research direction

Review the WSL2 OAuth callback flow and the linked PR #16, since the payload does not name specific files or tests. Done means the browser callback reliably reaches the Polar process without an IPv4/IPv6 loopback mismatch.

Written by the indexing model from the issue text.

Description

On WSL2, the browser login flow could complete successfully, but the callback from the browser (running on the Windows host) did not reliably reach the Polar process running inside WSL. This made the CLI appear to hang after environment selection.

Image

This was caused by a loopback mismatch in the WSL2 host/browser callback path (IPv4 vs IPv6 behavior on localhost), where callback delivery and listener binding were not aligned.

The fix is pretty straightforward: align the callback listener and callback target to the same loopback behavior so both sides use a consistent path. In practice, this removes the IPv4/IPv6 mismatch in the WSL2 callback flow and makes delivery reliable.

Fixed in PR: https://github.com/polarsource/cli/pull/16

Thanks!

Dominant language
TypeScript
Stars
13
Forks
14
Avg merge
23h 49m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from polarsource/cli

All issues in polarsource/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.