This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """ | |
| Get Garmin OAuth tokens via real browser login (Playwright). | |
| Bypasses the 429-blocked SSO programmatic login endpoint. | |
| Usage: | |
| uv run --with playwright --with requests-oauthlib scripts/garmin-browser-auth.py | |
| First time setup (installs Chromium): | |
| uv run --with playwright python -m playwright install chromium |