Skip to content

Example of refreshing the access token #1

@TylerLeonhardt

Description

@TylerLeonhardt

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions