Preflight Checklist
What's Wrong?
Description
As a Max subscription user using Claude Code i am using my work suscription jmedina@surterreproperties.com and, my OAuth authentication token is expiring multiple times per day, requiring me to repeatedly run claude logout && claude login to continue working which is annoying.
This is significantly disrupting my workflow, especially when working in environments where I only have a single terminal session (e.g., cloud-based dev environments) and cannot easily re-authenticate.
- Claude Code version: 2.1.63
- Platform: Linux
- Auth method: OAuth (Max subscription)
What Should Happen?
The OAuth token should have a reasonable lifetime, not expire multiple times within a single working session.
Error Messages/Logs
HTTP 401: authentication_error: OAuth token has expired. Please obtain a new
token or refresh your existing token.
Steps to Reproduce
- Log in to Claude Code using OAuth with a Max subscription (
claude login)
- Use Claude Code normally for a period of time
- After approximately 1-2 hours of use, any command fails with:
HTTP 401: authentication_error: OAuth token has expired
- Must run
claude logout && claude login to restore access
- Token expires again after another 1-2 hours, repeating the cycle
- This happens multiple times per day during normal usage
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.63
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information

Preflight Checklist
What's Wrong?
Description
As a Max subscription user using Claude Code i am using my work suscription jmedina@surterreproperties.com and, my OAuth authentication token is expiring multiple times per day, requiring me to repeatedly run
claude logout && claude loginto continue working which is annoying.This is significantly disrupting my workflow, especially when working in environments where I only have a single terminal session (e.g., cloud-based dev environments) and cannot easily re-authenticate.
What Should Happen?
The OAuth token should have a reasonable lifetime, not expire multiple times within a single working session.
Error Messages/Logs
Steps to Reproduce
claude login)HTTP 401: authentication_error: OAuth token has expiredclaude logout && claude loginto restore accessClaude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
No response
Claude Code Version
2.1.63
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information