Closed Tiim closed 3 months ago
I did this inside login(), so it's compatible with both ways:
if tokenstore:
if len(tokenstore) > 512:
self.garth.loads(tokenstore)
else:
self.garth.load(tokenstore)
else:
self.garth.login(self.username, self.password)
What do you think?
Added to version 0.2.13, are you able to test?
@Tiim kindly reminder... not a must though ;-)
Thanks a lot for implementing this and for the reminder. My side project that uses python-garminconnect is paused since I don't have enough spare time to work on it, so I am currently unable to test.
Closing, please (re)open if needed!
Currently the only way to login is via username/password and via the tokens in a folder. However, garth supports parsing the tokens from a base64 encoded string as well using the
loads
method. Would this be something that you would be willing to implement?My usecase is I want to create a github action that connects to garmin, and storing the token in a single secret is much more user friendly than having to use two secrets and writing them to the filesystem. I currently implement this by monkeypatching the library in the following way: