01-21-2016 05:21 - last edited on 01-21-2016 13:41 by JeremiahFitbit
01-21-2016 05:21 - last edited on 01-21-2016 13:41 by JeremiahFitbit
Hi,
implementing token refreshing detection, hitting some issues.
Your spec says the error returned is:
{"errors": [{"errorType": "oauth", "fieldName": "access_token", "message": "Access token invalid or expired: {token}"}]}
But what I get back from the API is:
{"errors":[{"errorType":"expired_token","message":"Access token expired: {token}. Visit https://dev.fitbit.com/docs/oauth2 for more information on the Fitbit Web API authorization process."}],"success":false}
What should I check for? Will it change in the future?
Moderator edit: moved to own topic
Answered! Go to the Best Answer.
01-21-2016 14:34
01-21-2016 14:34
Hi,
See https://community.fitbit.com/t5/Web-API/OAuth-2-0-error-changes/td-p/1138662. We inadvertently released backwards-incompatible changes to our error handling without appropriate notice. Apologies for the incovenience.
01-21-2016 14:34
01-21-2016 14:34
Hi,
See https://community.fitbit.com/t5/Web-API/OAuth-2-0-error-changes/td-p/1138662. We inadvertently released backwards-incompatible changes to our error handling without appropriate notice. Apologies for the incovenience.