[BUG] Login is not persistent and google auth is not working.
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?
Claude code logged my out today. When I tried to login via terminal - it did not recognize my credentials. So, I reauthenticated via my google email and that was not recognized by the Claude harness. Then I logged into my Claude harness and I can access that with no problem. Claude told me to reinstall Claude Code - which I did. Then I was able to login and it logged me out in about 1 min again. Then I reauthenticated and it asked me to log in three times. Now it appears to be working but there seems to be an auth persistence issue on your end that is not appearing in status.claude.com. Thanks!
What Should Happen?
I should use /login and be able to use Claude code in a terminal window.
Error Messages/Logs
Last login: Thu Aug 6 22:28:29 on ttys001
jenniferroebuck@Jennifers-MacBook-Pro-3 ~ % npm install -g @anthropic-ai/claude-code@latest
npm error code EACCES
npm error syscall rename
npm error path /usr/local/lib/node_modules/@anthropic-ai/claude-code
npm error dest /usr/local/lib/node_modules/@anthropic-ai/.claude-code-1devilah
npm error errno -13
npm error Error: EACCES: permission denied, rename '/usr/local/lib/node_modules/@anthropic-ai/claude-code' -> '/usr/local/lib/node_modules/@anthropic-ai/.claude-code-1devilah'
npm error at async Object.rename (node:internal/fs/promises:787:10)
npm error at async moveFile (/usr/local/lib/node_modules/npm/node_modules/@npmcli/fs/lib/move-file.js:30:5)
npm error at async Promise.allSettled (index 0)
npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:313:11)
npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:125:5)
npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async Npm.exec (/usr/local/lib/node_modules/npm/lib/npm.js:208:9)
npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:67:5) {
npm error errno: -13,
npm error code: 'EACCES',
npm error syscall: 'rename',
npm error path: '/usr/local/lib/node_modules/@anthropic-ai/claude-code',
npm error dest: '/usr/local/lib/node_modules/@anthropic-ai/.claude-code-1devilah'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm notice
npm notice New minor version of npm available! 11.6.2 -> 11.19.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.19.0
npm notice To update run: npm install -g npm@11.19.0
npm notice
npm error A complete log of this run can be found in: /Users/jenniferroebuck/.npm/_logs/2026-08-06T21_30_42_441Z-debug-0.log
jenniferroebuck@Jennifers-MacBook-Pro-3 ~ %
Steps to Reproduce
Login to Claude Code.
Try to to anything
Claude Code logs you out
use /login and reautenticate via the browser
Claude does not recognize you.
Reinstall claude code and try again
Then reauth ( three times )
Then it works.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
no idea
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_