06-26-2018 15:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

06-26-2018 15:31
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I have built simple HTTP POST method in AWS Api Gateway, with access control through Amazon Cognito and Oauth. I would like to consume this method from Fitbit OS app on my watch (with use of Companion).
Anyone that has done similar integration and could share examples/experiences?
My initial questions:
1. How can I avoid asking user to sign in every time he uses the app? I would like to only ask for sign in the very first time user access the app.
2. Do I use AWS SDK for Javascript in Fitbit OS, or are there any other (better/easier) alternatives? Im specially thinking on challange step and token refresh.
3. Any input on how to configure authentication flows in Cognito to make the interaction with Fitbit app easy, but secure?
Thanks in advance!
06-29-2018 12:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


06-29-2018 12:52
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Did you see the example app which the Settings API for oauth? https://github.com/Fitbit/sdk-oauth
The user authenticates on the settings page, then the token is persisted. You'll have to handle the refresh token yourself.
