[Bug] Authentication failure: Unable to login
Resolved 💬 3 comments Opened Oct 16, 2025 by diabdisb Closed Oct 20, 2025
Bug Description
cant login
Environment Info
- Platform: win32
- Terminal: null
- Version: 2.0.19
- Feedback ID: 419ac336-7101-424c-9147-a54c6d94f762
Errors
[{"error":"Error: Could not resolve authentication method. Expected either apiKey or authToken to be set. Or for one of the \"X-Api-Key\" or \"Authorization\" headers to be explicitly omitted\n at eS.validateHeaders (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:930)\n at eS.buildHeaders (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:8412)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async eS.buildRequest (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:7470)\n at async eS.makeRequest (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:3309)\n at async wH1.model (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19441)\n at async wH1 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2574:39781)\n at async zRQ (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19595)\n at async file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:13795\n at async rn0 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:4415)","timestamp":"2025-10-16T15:12:29.815Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"},\"request_id\":\"req_011CUB6NKGztJY2Uw3Q7UaNS\"}\n at q4.generate (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:202:83082)\n at eS.makeStatusError (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n at eS.makeRequest (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async wH1.model (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19441)\n at async wH1 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2574:39781)\n at async zRQ (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19595)\n at async file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:13795\n at async rn0 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:4415)\n at async bQ1 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:13765)","timestamp":"2025-10-16T15:12:41.224Z"},{"error":"SyntaxError: Unexpected token '`', \"```json\n{\n\"... is not valid JSON\n at JSON.parse (<anonymous>)\n at file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:62:719\n at Q (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:8:15093)\n at Pi2 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1056:20444)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-16T15:12:41.733Z"},{"error":"Error: 401 {\"type\":\"error\",\"error\":{\"type\":\"authentication_error\",\"message\":\"OAuth authentication is currently not supported.\"},\"request_id\":\"req_011CUB6PLRysjyaMBofhrhPm\"}\n at q4.generate (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:202:83082)\n at eS.makeStatusError (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:2117)\n at eS.makeRequest (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:356:5330)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async wH1.model (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19441)\n at async wH1 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:2574:39781)\n at async zRQ (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:19595)\n at async file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:13795\n at async rn0 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:4415)\n at async bQ1 (file:///C:/Users/Home/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:3226:13765)","time
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗