You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OAuth error: Invalid code. Please make sure the full code was copied #97
After receiving the "Welcome to the Claude Code research preview" email, then installing Claude Code, it continuously fails to authenticate despite entering the correct code multiple times and refreshing to get new codes.
✻ Welcome to Claude Code research preview!
OAuth error: Invalid code. Please make sure the full code was copied
The resolution to this issue was to enter the 6-digit code from the email into the browser (which was launched from Claude Code) and then copying a much longer code string from the browser to Claude Code. The worst thing about Anthropic (including the Claude Chat app) is the requirement to get one-time codes via email versus utilize a OTP via another more common standard or PassKeys, etc. However, this specific issue was a user issue (mine) which clearer documentation or a better auth mechanism could prevent others from having the same issue.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
Activity
paraserv commentedon Feb 25, 2025
The resolution to this issue was to enter the 6-digit code from the email into the browser (which was launched from Claude Code) and then copying a much longer code string from the browser to Claude Code. The worst thing about Anthropic (including the Claude Chat app) is the requirement to get one-time codes via email versus utilize a OTP via another more common standard or PassKeys, etc. However, this specific issue was a user issue (mine) which clearer documentation or a better auth mechanism could prevent others from having the same issue.
github-actions commentedon Aug 9, 2025
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.
chore: Update CHANGELOG.md and feed.xml