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 #115

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ryeguard
Copy link
Contributor

@ryeguard ryeguard commented Mar 25, 2024

An approach for mitigating issue #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.

@atomical
Copy link

atomical commented Apr 2, 2024

This is a cool idea. This project doesn't work without the captcha, right?

@tymmej
Copy link

tymmej commented Jul 20, 2024

It looks like it solves #108 also.

@tymmej tymmej mentioned this pull request Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants