Skip to content

OAuth error: Invalid code. Please make sure the full code was copied #97

Closed

Description

@paraserv

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

Activity

  1. paraserv commented on Feb 25, 2025

    @paraserv
    Author

    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.

  2. github-actions commented on Aug 9, 2025

    @github-actions

    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.

  3. locked as resolved and limited conversation to collaborators on Aug 9, 2025
  4. added a commit that references this issue on Nov 16, 2026
    bc1e8a8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions