Claude Code 1.0.6 – 1.0.8Auth / LoginFixed in 1.0.9

Claude Code authentication: login loop after upgrade

Error: authentication required — token refresh failed (invalid_grant)
Affected versions
1.0.6 – 1.0.8
Fixed in
1.0.9
Last verified
Claude Code 1.0.9

Root cause

A stale OAuth token in the credentials store fails to refresh after an upgrade, so the CLI re-prompts login on every run.

How to reproduce

Upgrade Claude Code, run any command, get sent to browser login repeatedly without the session sticking.

Solutions (2)

Ordered by community votes. Always check the verified version before applying.

76
#1Applies to 1.0.8

Run `claude logout` then `claude login` to clear and re-issue the token. If it persists, delete the stored credentials and log in again.

Last verified: Claude Code 1.0.9 · community

52
#2OfficialApplies to 1.0.9

Upgrade to 1.0.9+, which fixes the refresh-token rotation bug that caused the loop.

Last verified: Claude Code 1.0.9 · maintainer

Related errors