Cant login OAuth error: Cannot read properties of undefined (reading 'digest')

Status Fixed / completed
Maintainer reply ✓ Yes — bcherny
Activity 6 comments · opened Feb 24, 2025 · closed Mar 6, 2025
💡 Likely answer: A maintainer (bcherny, collaborator) responded on this thread — see the highlighted reply below.

Hey guys, getting this error : " OAuth error: Cannot read properties of undefined (reading 'digest')"

╭────────────────────────────────────────────╮
│ ✻ Welcome to Claude Code research preview! │
╰────────────────────────────────────────────╯

██████╗██╗ █████╗ ██╗ ██╗██████╗ ███████╗
██╔════╝██║ ██╔══██╗██║ ██║██╔══██╗██╔════╝
██║ ██║ ███████║██║ ██║██║ ██║█████╗
██║ ██║ ██╔══██║██║ ██║██║ ██║██╔══╝
╚██████╗███████╗██║ ██║╚██████╔╝██████╔╝███████╗
╚═════╝╚══════╝╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚══════╝
██████╗ ██████╗ ██████╗ ███████╗
██╔════╝██╔═══██╗██╔══██╗██╔════╝
██║ ██║ ██║██║ ██║█████╗
██║ ██║ ██║██║ ██║██╔══╝
╚██████╗╚██████╔╝██████╔╝███████╗
╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝

OAuth error: Cannot read properties of undefined (reading 'digest')

View original on GitHub ↗

6 Comments

bcherny collaborator · 1 year ago

Hey! What terminal/OS/Node version are you using?

OwnYourAi · 1 year ago

Operating System: You're running macOS (Darwin 24.3.0)
Node Version: v22.9.0
tried a couple of terminals, including zsh and iterm

wbingli · 1 year ago

Change to use node v20 fix this issue to me.

OwnYourAi · 1 year ago
Change to use node v20 fix this issue to me.

Thanks wbingli

that worked!

igorkofman collaborator · 1 year ago

Should be fixed (cannot repro with v22.9 and have changed required version to be 18+). Did repro with older versions.

github-actions[bot] · 1 year ago

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.