Claude Code errors / Auth

OAuth error: Failed to fetch user roles: OAuth account information not found in config

platform: Claude Code / category: Auth

Cause

The OAuth flow completes in the browser but Claude Code fails to write or read back the token from the config file.

Fix

Full reinstall: npm uninstall -g @anthropic-ai/claude-code; rm -rf ~/.claude ~/Library/Application\ Support/ClaudeCode; npm cache clean --force; npm install -g @anthropic-ai/claude-code; then log in again.

Source thread →

Part of the Automation Error Index — Claude Code errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem