fix: correct state destructuring and document headless mode
- Fix extractCodeFromInput destructuring: returns { code, state } not
{ code, extractedState }, so state validation was being bypassed
- Add --no-browser hint to CLI banner for discoverability
- Document --no-browser mode in README.md and CLAUDE.md
- Add test:oauth script to package.json
- Add OAuth test to run-all.cjs test suite
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
15
README.md
15
README.md
@@ -84,6 +84,21 @@ npm run accounts:add
|
||||
|
||||
This opens your browser for Google OAuth. Sign in and authorize access. Repeat for multiple accounts.
|
||||
|
||||
**Headless Servers (Docker, SSH, no desktop):**
|
||||
|
||||
```bash
|
||||
# Use --no-browser mode for servers without a browser
|
||||
antigravity-claude-proxy accounts add --no-browser
|
||||
|
||||
# Or with npx
|
||||
npx antigravity-claude-proxy accounts add -- --no-browser
|
||||
|
||||
# Or if cloned locally
|
||||
npm run accounts:add -- --no-browser
|
||||
```
|
||||
|
||||
This displays an OAuth URL you can open on another device (phone/laptop). After signing in, copy the redirect URL or authorization code and paste it back into the terminal.
|
||||
|
||||
Manage accounts:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in New Issue
Block a user