Skip to content

OAuth token expires every ~10 minutes (was ~1 week) #37804

Closed as not planned
Closed as not planned

Description

@PigLardLord

Description

OAuth tokens are expiring approximately every 10 minutes, requiring frequent /login in each active session. Previously, tokens persisted for roughly 1 week with no configuration changes on the user's end.

Environment

  • Claude Code version: 2.1.81
  • OS: macOS (Darwin 25.3.0, Apple Silicon)
  • Shell: zsh
  • Subscription: Claude Max (not API key)

Steps to reproduce

  1. Run /login in a Claude Code session
  2. Wait ~10 minutes (or use multiple concurrent sessions)
  3. Session requires /login again

Expected behavior

OAuth token should persist for a reasonable duration (previously ~1 week) without requiring re-authentication.

Actual behavior

Token expires after ~10 minutes, requiring /login again. This is especially painful with multiple concurrent sessions, as each one must be re-authenticated individually.

Impact

  • Multi-session workflows (e.g., monitoring + development) are severely disrupted
  • Users must manually /login in every active session every ~10 minutes
  • Recurring cron-based prompts become unusable across session boundaries

Additional context

No changes were made to local configuration. The TTL regression appeared recently (noticed around 2026-03-23). There is no mechanism to share a refreshed token across concurrent sessions — a fix for the TTL would also benefit from a shared token store (see related: multi-session auth).

Activity

  1. added
    bug
    platform:macos
    has repro
    on Mar 23, 2026
  2. github-actions commented on Mar 23, 2026

    @github-actions

    Found 3 possible duplicate issues:

    1. [BUG] OAuth token expires excessively — multiple times per day #36911
    2. Agent token TTL too short (~15min) — kills 30-40% of long-running worktree agents #37636
    3. Session token expires within minutes when multiple subagents are spawned concurrently #37324

    This issue will be automatically closed as a duplicate in 3 days.

    • If your issue is a duplicate, please close it and 👍 the existing issue instead
    • To prevent auto-closure, add a comment or 👎 this comment

    🤖 Generated with Claude Code

  3. tungchau commented on Mar 23, 2026

    @tungchau

    I have the same problem.
    Claude Code version: 2.1.81
    macOS - Claude Max

  4. added
    stale
    on Apr 7, 2026
  5. github-actions commented on Apr 21, 2026

    @github-actions

    Closing for now — inactive for too long. Please open a new issue if this is still relevant.

  6. github-actions commented on May 1, 2026

    @github-actions

    This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

  7. locked as resolved and limited conversation to collaborators on May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:authbughas reproplatform:macosregressionstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions