Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Getting 400 while accessing token from code

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}

Best Answer
1 REPLY 1

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
0 Votes