loop trying to login.
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
- Run
claude//loginin the terminal (or trigger the connection flow) - Browser opens the "Claude Code would like to connect to your Claude chat account" authorization screen
- Click "Authorize"
- Redirected to "Sign in again to continue" screen
- Click "Sign in again"
- On the login screen, click "Continue with email"
- 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
- Run
claude//loginin the terminal (or trigger the connection flow) - Browser opens the "Claude Code would like to connect to your Claude chat account" authorization screen
- Click "Authorize"
- Redirected to "Sign in again to continue" screen
- Click "Sign in again"
- On the login screen, click "Continue with email"
- 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:
- Install or open Claude Code:
claude
- 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.
- Click Authorize.
- 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."
- Click Sign in again.
- 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.
- Click Continue with email.
- 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."
- 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_
6 Comments
same issue here
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)
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 ;)
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?
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.
I also has this with this setup. And unfortunately switching to Chromium did fix it.