11-07-2020 12:21
11-07-2020 12:21
Hello,
I'm having issues of how to check if I am login in fitbit. I mean i want to check if I am login when i select for example my profile data which i take from companion. If am I not, then see an error message that i need to login. I cannot understand which variable should i take to make the if statement. Have anyone any idea?
11-13-2020 05:05
11-13-2020 05:05
The companion isn't logged in at all. You'd need to implement your own login process using the oauth component in the Settings API. Within that process, you'd persist an auth token and your companion can use that token when making fetch requests.
Here's a great example, and it even includes instructions in the readme.
https://github.com/TylerLeonhardt/Water-Logged