Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

workersGET /v3/studies/:studyIdentifier/oathoauth/:vendorId/:healthCode
if access token exists and is not expiredreturn access token
if access token exists and is expiredrefresh token and return refreshed token
401anything else (should only be an error from Fitbit)
200{"vendorId":"vendorId","accessToken":"<accessToken>","expiresOn":"<ISO 8601 timestamp>"}

...