Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Login check Versa 3 fitbit

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?

Best Answer
0 Votes
1 REPLY 1

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

 

Best Answer
0 Votes