|
| 1 | +# Getting Started |
| 2 | + |
| 3 | +Get up and running with Auth HI! in minutes. |
| 4 | + |
| 5 | +## Installation |
| 6 | + |
| 7 | +### From Chrome Web Store |
| 8 | + |
| 9 | +> 🚀 **Coming Soon** - Extension is currently in review |
| 10 | +
|
| 11 | +Once published, click "Add to Chrome" from the Chrome Web Store listing. |
| 12 | + |
| 13 | +### From Source |
| 14 | + |
| 15 | +If you want to build from source or contribute: |
| 16 | + |
| 17 | +```bash |
| 18 | +# Clone the repository |
| 19 | +git clone https://github.com/prosdevlab/auth-header-injector.git |
| 20 | +cd auth-header-injector |
| 21 | + |
| 22 | +# Install dependencies |
| 23 | +pnpm install |
| 24 | + |
| 25 | +# Build the extension |
| 26 | +pnpm build |
| 27 | + |
| 28 | +# Load in Chrome |
| 29 | +# 1. Open chrome://extensions/ |
| 30 | +# 2. Enable "Developer mode" |
| 31 | +# 3. Click "Load unpacked" |
| 32 | +# 4. Select the `dist` folder |
| 33 | +``` |
| 34 | + |
| 35 | +## First Steps |
| 36 | + |
| 37 | +### 1. Open the Side Panel |
| 38 | + |
| 39 | +Click the extension icon in your Chrome toolbar. The side panel will open on the right side of your browser. |
| 40 | + |
| 41 | +### 2. Enable the Extension |
| 42 | + |
| 43 | +Toggle the "Enable extension" switch at the top of the panel. |
| 44 | + |
| 45 | +### 3. Add Your First Rule |
| 46 | + |
| 47 | +Click "Add Rule" and fill in: |
| 48 | + |
| 49 | +- **Pattern**: URL pattern to match (e.g., `*.api.example.com`) |
| 50 | +- **Token**: Your Bearer token (just the token, not "Bearer ...") |
| 51 | +- **Label**: Optional friendly name (e.g., "Staging API") |
| 52 | + |
| 53 | +Click "Save" and you're done! |
| 54 | + |
| 55 | +### 4. Verify It's Working |
| 56 | + |
| 57 | +1. Navigate to a page that makes API calls matching your pattern |
| 58 | +2. Check the "Context Bar" at the top - it shows matched rules |
| 59 | +3. See request counts increase as API calls are intercepted |
| 60 | +4. Open DevTools → Network tab → Check request headers |
| 61 | + |
| 62 | +## Example: GitHub API |
| 63 | + |
| 64 | +Let's set up auth for GitHub's API: |
| 65 | + |
| 66 | +**Pattern**: `*github.com` |
| 67 | +**Token**: `ghp_yourPersonalAccessToken` |
| 68 | +**Label**: `GitHub API` |
| 69 | + |
| 70 | +Now any requests to `github.com` or `api.github.com` will include your auth token automatically! |
| 71 | + |
| 72 | +## Next Steps |
| 73 | + |
| 74 | +- Learn about [URL Pattern Matching](/guide/patterns) |
| 75 | +- Explore [Common Use Cases](/guide/examples) |
| 76 | +- Check out [Troubleshooting](/guide/troubleshooting) if something's not working |
| 77 | + |
| 78 | +## Need Help? |
| 79 | + |
| 80 | +- [GitHub Issues](https://github.com/prosdevlab/auth-header-injector/issues) - Report bugs |
| 81 | +- [GitHub Discussions](https://github.com/prosdevlab/auth-header-injector/discussions) - Ask questions |
| 82 | + |
0 commit comments