XiaoSiHwang / garmin-sync-coros

36 stars 103 forks source link

How to handle MFA for Garmin? #2

Open liuqian0147 opened 5 months ago

liuqian0147 commented 5 months ago

The default MFA handler for Garth package is input("MFA code"), but it doesn't work in Github actions, any ideas?

matin commented 4 months ago

Log in manually, and dump your tokens with garth.client.dumps(). Then, store that value as a secret for you GH action and use garth.client.loads()—instead of trying to log in during the GH action. The tokens are valid for a year.