loop trying to login.

Status Open
Reported on v2.1.201
Maintainer reply None cached
Activity 6 comments · opened Jul 18, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Preflight Checklist

  • [x] I have searched existing issues and this appears to match #47152 and #10701
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

What's Wrong?

The OAuth login flow fails when authorizing Claude Code to connect to my Claude.ai account. After clicking "Authorize" on the connection screen, I'm prompted to "Sign in again" for security. On the subsequent login screen, clicking "Continue with email" returns:

There was an error sending you a login link. If the problem persists contact support for assistance.

This happens consistently across multiple attempts over several hours/days, not just once.

Environment

  • Claude Code version: [PLEASE FILL IN — run claude --version]
  • OS: [PLEASE FILL IN — e.g. macOS / Windows / Linux, and version]
  • Node.js version: [PLEASE FILL IN — run node --version]
  • Account: Claude Pro/Max [confirm which]
  • Auth method: Email (ProtonMail)
  • Google account: not linked / not available as an alternative login method

Troubleshooting already done

  • Confirmed the account does receive other Anthropic emails without issue (e.g., support bot correspondence from support@mail.anthropic.com)
  • Confirmed no email filters or rules on the ProtonMail account
  • Confirmed nothing in spam/junk folder
  • Retried multiple times across different attempts, same error every time
  • Have not tried a different network/device yet [update if you do]

Steps to Reproduce

  1. Run claude / /login in the terminal (or trigger the connection flow)
  2. Browser opens the "Claude Code would like to connect to your Claude chat account" authorization screen
  3. Click "Authorize"
  4. Redirected to "Sign in again to continue" screen
  5. Click "Sign in again"
  6. On the login screen, click "Continue with email"
  7. Error appears: "There was an error sending you a login link."

Expected Behavior

The login link email should be sent successfully, allowing me to complete authentication and use Claude Code with my subscription.

Actual Behavior

Login link fails to send every time, blocking all use of Claude Code via subscription auth.

Related Issues

#47152, #10701 — same error message reported by other users across different OS/locales

What Should Happen?

Preflight Checklist

  • [x] I have searched existing issues and this appears to match #47152 and #10701
  • [x] This is a single bug report
  • [x] I am using the latest version of Claude Code

What's Wrong?

The OAuth login flow fails when authorizing Claude Code to connect to my Claude.ai account. After clicking "Authorize" on the connection screen, I'm prompted to "Sign in again" for security. On the subsequent login screen, clicking "Continue with email" returns:

There was an error sending you a login link. If the problem persists contact support for assistance.

This happens consistently across multiple attempts over several hours/days, not just once.

Environment

  • Claude Code version: [PLEASE FILL IN — run claude --version]
  • OS: [PLEASE FILL IN — e.g. macOS / Windows / Linux, and version]
  • Node.js version: [PLEASE FILL IN — run node --version]
  • Account: Claude Pro/Max [confirm which]
  • Auth method: Email (ProtonMail)
  • Google account: not linked / not available as an alternative login method

Troubleshooting already done

  • Confirmed the account does receive other Anthropic emails without issue (e.g., support bot correspondence from support@mail.anthropic.com)
  • Confirmed no email filters or rules on the ProtonMail account
  • Confirmed nothing in spam/junk folder
  • Retried multiple times across different attempts, same error every time
  • Have not tried a different network/device yet [update if you do]

Steps to Reproduce

  1. Run claude / /login in the terminal (or trigger the connection flow)
  2. Browser opens the "Claude Code would like to connect to your Claude chat account" authorization screen
  3. Click "Authorize"
  4. Redirected to "Sign in again to continue" screen
  5. Click "Sign in again"
  6. On the login screen, click "Continue with email"
  7. Error appears: "There was an error sending you a login link."

Expected Behavior

The login link email should be sent successfully, allowing me to complete authentication and use Claude Code with my subscription.

Actual Behavior

Login link fails to send every time, blocking all use of Claude Code via subscription auth.

Related Issues

#47152, #10701 — same error message reported by other users across different OS/locales

Error Messages/Logs

Steps to Reproduce

Steps to Reproduce

Prerequisites:

  • A Claude Pro or Max subscription (individual account, not Team/Enterprise)
  • Account email hosted on ProtonMail (may or may not be relevant — see notes below)
  • No Google account linked to the Claude.ai account (email-only auth)

Steps:

  1. Install or open Claude Code:
   claude
  1. If not already authenticated, Claude Code opens a browser window showing:

> "Claude Code would like to connect to your Claude chat account"
with an Authorize / Decline choice.

  1. Click Authorize.
  2. The browser redirects to a screen titled "Sign in again to continue" with the message:

> "For your security, granting this access requires a recent sign-in. Sign in again to continue."

  1. Click Sign in again.
  2. The browser shows the standard Claude.ai Log in screen with two options: "Continue with Google" and an email field pre-filled with the account's email, plus a Continue with email button.
  3. Click Continue with email.
  4. Expected: a login link is emailed and a confirmation message appears.

Actual: the following error appears immediately below the button:
> "There was an error sending you a login link. If the problem persists contact support for assistance."

  1. Repeat steps 3–8 after waiting 15+ minutes: identical error occurs every time.

10.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.201

Claude Code Version

2.1.201

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

6 Comments

jm-calderon · 1 month ago

same issue here

beaudekkerlightsight · 1 month ago

I have a similar but slightly different issue - I am receiving login emails with the magic link, but if I follow the magic links I get into an endless loop of

Login with Email > Receive magic link > Follow magic link > Authorize > "For your security, granting this access requires a recent sign-in. Sign in again to continue." > "Sign in again" > (Back to step 1 of login with email)

ttrova · 1 month ago

I had the same issue just now, a login loop with no end....
I was using firefox on a fedora machine.

By using chromium on the same computer -> the login process goes to an end (and everything work again).
Hope it helps ;)

CircleInstruments · 1 month ago

getting similar issues. Login with email, get the code, the code takes me to account setup when I have an existing account under this email. How can that be fixed?

nsymms · 1 month ago

Same issue here. I was able to get Claude terminal authenticated, but vs code extension is worthless today. even updated to the latest extension v2.1.218. no matter what i do it just asks me to authenticate, then after the magic code email i get a 400 error in the vs code extension. rinse and repeat.

I've really got to get a local ollama model going. this is ridiculous; it's been reported and "fixed" so many times in the past months.

Edit: after some testing.....
The VS Code extension works if I am logged in locally, when completed via the claude code terminal. The login loop starts when I try to connect to a remote host (where I've done much development with and without Claude). I can connect to the remote, but the claude extension can't validate me. At the very least, the extension should provide some notification of which extension is failing -- local or remote.

BlairStewart · 1 month ago
I had the same issue just now, a login loop with no end.... I was using firefox on a fedora machine.

I also has this with this setup. And unfortunately switching to Chromium did fix it.