08-13-2021
08:16
- last edited on
08-20-2021
12:24
by
JohnFitbit
08-13-2021
08:16
- last edited on
08-20-2021
12:24
by
JohnFitbit
Hi Team,
I'm facing invalid grant_type error while fetching token from code
API URL - https://api.fitbit.com/oauth2/token
Param :
{
grant_type:authorization_code,
client_id:XXXXX,
code:XXXXXXXXXXX,
redirect_uri:fitmoji://,
}
header :
Authorization:Basic {REDACTED}
08-20-2021 12:27
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.
08-20-2021 12:27
Hi @prashanttrivedi ,
Welcome to the forums!
For security reasons, I've redacted your Basic Token. Please refrain from sharing this information publicly in the future.
As for the error you are encountering, can you please provide me with the error message associated to the error code you are receiving so I can provide you with the appropriate resolution? As you can see here, there are a few invalid_grant errors you can encounter: https://dev.fitbit.com/build/reference/web-api/troubleshooting-guide/error-messages/#400-bad-request
Thanks!
Best Answer