Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example of refreshing the access token #1

Open
TylerLeonhardt opened this issue Jan 10, 2018 · 2 comments
Open

Example of refreshing the access token #1

TylerLeonhardt opened this issue Jan 10, 2018 · 2 comments

Comments

@TylerLeonhardt
Copy link
Contributor

This example is a good start, but it's missing a few, IMO, crucial things.

  1. The access token that comes from the OAuth request in the settings page eventually expires, forcing the user to have to re-auth in the settings. This is not ideal. I know there's a concept of a refresh token and it'd be awesome to get an example of that!

  2. (lower pri) an example POST request to the fitbit's API. I learned after a whole lot of digging that the POST body data is passed in as query params instead of in a JSON body. That wasn't really exactly clear in the docs and this didn't have an example of POSTing so I was kind of left in the dark until I found the swagger spec.

I'm trying to submit an app for the challenge deadline on Friday and would love to have #1 in my app!

@TylerLeonhardt
Copy link
Contributor Author

p.s. Is there a fitbit slack group like there was a Pebble slack group? :)

@orviwan
Copy link
Collaborator

orviwan commented Jan 10, 2018

@tylerl0706 Thanks for the feedback! There is a community Discord, not Slack. https://dev.fitbit.com/discord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants