01-11-2019 17:28 - edited 01-11-2019 17:31
01-11-2019 17:28 - edited 01-11-2019 17:31
I am using Implicit Grant Flow and trying to log out Fitbit user from my app by revoking tokens. I attempted to make a POST request to this endpoint:
https://api.fitbit.com/oauth2/revoke
..and passed in the base64 string of my client id and secret as shown in the documentation:
Authorization: "Basic [my base64 string here]"
But I keep getting a 400 error that reads "Missing "token" parameter or token empty..."
I have the access token, not sure if it needs to be passed to the header? Postman shows the same error. Appreciate any help!
01-13-2019 12:07
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
01-13-2019 12:07
Hi @djyoo
Try passing the access token as a parameter to the API call.
https://dev.fitbit.com/build/reference/web-api/oauth2/#revoking-tokens
Gordon
Best Answer