-
-
Notifications
You must be signed in to change notification settings - Fork 146
Open
Description
Environment
- clawdhub CLI version: 0.3.0
- OS: macOS
- Node: v24.9.0
Description
Browser OAuth flow completes successfully ("Logged in. You can close this tab.") but the CLI returns an Unauthorized error.
Steps to Reproduce
- Run
clawdhub login - Browser opens, authenticate successfully
- Browser shows "Completing login… Logged in. You can close this tab."
- CLI returns:
✖ Unauthorized/Error: Unauthorized
Expected Behavior
CLI should receive the token and write it to config.
Actual Behavior
Token never reaches CLI. Config file remains without a token:
{
"registry": "https://clawdhub.com"
}Troubleshooting Attempted
- No CLAWDHUB env vars set
- Cleared config file and retried
- Tried with explicit flags:
clawdhub login --site https://clawdhub.com --registry https://clawdhub.com - Tried with
DEBUG=*— no additional output
Notes
The browser-side auth succeeds (confirmed by the "Logged in" message), so the issue appears to be in the CLI callback handler receiving or validating the token.
Metadata
Metadata
Assignees
Labels
No labels