Use 127.0.0.1 instead of localhost in OAuth redirect URL#175
Merged
Conversation
The callback server binds to 127.0.0.1 (IPv4) but the redirect URL used "localhost", which on some systems (notably macOS) resolves to ::1 (IPv6), causing a connection refused / 404 on the OAuth callback. Use 127.0.0.1 in the redirect URL to match the actual bind address. Fixes #174 https://claude.ai/code/session_017PVtniLsGiFSSNx9RZLW4f
The auto-generated help code block in README.md was empty, causing the readme-help unit test to fail across all Node.js versions in CI. https://claude.ai/code/session_017PVtniLsGiFSSNx9RZLW4f
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updated the OAuth callback redirect URL to use the IP address
127.0.0.1instead of the hostnamelocalhost.Fixes #174
Changes
http://localhost:${port}/callbacktohttp://127.0.0.1:${port}/callbackin theperformOAuthFlowfunctionDetails
This change ensures the OAuth callback uses an explicit IP address rather than relying on hostname resolution. Using
127.0.0.1directly can provide more reliable behavior across different system configurations and avoid potential DNS resolution issues during the OAuth authentication flow.https://claude.ai/code/session_017PVtniLsGiFSSNx9RZLW4f