OAuth token has expired.
This is going to be a fast simple post to help those that have run into this lately. It is a super easy fix.
claude
╭─── Claude Code v2.1.79
❯ hello
⎿ Please run /login · API Error: 401
{"type":"error","error":{"type":"authentication_error","message":"OAuth token has expired.
Please obtain a new token or refresh your existing
token."},"request_id":""}
❯ Login
Browser didn't open? Use the url below to sign in (c to copy)
https://claude.ai/oauth/authorize?code=true&client_id=
It of course depends how you are accessing this but a link wil be available for you to Accept or Decline to Authorize this access for claude code to claude.
Decline this 1st attempt.
Now repeat the steps again. This time when the link gets generated.
Accept this 2nd attempt. Hope this helps.
❯ Login
Browser didn't open? Use the url below to sign in (c to copy)
https://claude.ai/oauth/authorize?code=true&client_id=
Paste code here if prompted >
Login successful. Press Enter to continue…
❯ /login
⎿ Login successful
No comments:
Post a Comment