claude-code - 💡(How to fix) Fix OAuth token expiration is too short for Max subscribers [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46059Fetched 2026-04-11 06:30:03
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3
RAW_BUFFERClick to expand / collapse

Problem

The OAuth token for Max subscription users expires too quickly, requiring frequent re-authentication via /login. This interrupts workflow and is frustrating, especially for users who use Claude Code throughout the day.

Current behavior

  • Token expires after a short period (feels like every few hours)
  • Users must run /login repeatedly to continue using Claude Code
  • No way to configure token expiration duration

Expected behavior

  • Longer token expiration for Max subscribers (e.g., 7 days or 30 days)
  • Or a configurable token lifetime setting
  • Or a refresh token mechanism that silently renews the session

Environment

  • Claude Code CLI
  • Max subscription plan
  • Running on Linux (Synology NAS)

Thank you for considering this improvement.

extent analysis

TL;DR

Implementing a refresh token mechanism or configurable token lifetime setting could alleviate frequent re-authentication issues for Max subscription users.

Guidance

  • Investigate the OAuth token expiration duration and consider increasing it to a longer period, such as 7 or 30 days, specifically for Max subscribers.
  • Explore implementing a refresh token mechanism that silently renews the session, eliminating the need for frequent re-authentication.
  • Review the Claude Code CLI documentation and configuration options to determine if there are any existing settings or workarounds that can be applied to mitigate the issue.
  • Consider reaching out to the development team or support channel to discuss the feasibility of implementing a configurable token lifetime setting.

Notes

The ideal solution may depend on the specific OAuth implementation and requirements of the Claude Code CLI and Max subscription plan. Further investigation and discussion with the development team may be necessary to determine the best approach.

Recommendation

Apply a workaround, such as implementing a refresh token mechanism or increasing the token expiration duration, as this could provide a more seamless experience for Max subscription users.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

  • Longer token expiration for Max subscribers (e.g., 7 days or 30 days)
  • Or a configurable token lifetime setting
  • Or a refresh token mechanism that silently renews the session

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING