Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(auth): add support for setting auth header and cookie manually #1

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

JakobLichterfeld
Copy link

An approach for mitigating issue petergardfjall#113. This PR allows the user to set the Authorization header and JWT_FGP cookie through command line args, e.g.,

export TOKEN="longer_token_here"
export JWT_FGP="shorter-cookie-here"
garmin-backup --token=$TOKEN --jwt_fgp=$JWT_FGP username

Where the token/cookie can be found under the Network>Headers/Cookies tab in your browser's DevTools in requests to connect.garmin.com.

petergardfjall#115

@JakobLichterfeld JakobLichterfeld added bug Something isn't working enhancement New feature or request labels Mar 5, 2025
@JakobLichterfeld JakobLichterfeld merged commit 10db93f into garminexport:master Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants