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

Authorization code verifier invalid

ANSWERED

I checked the related topics already but found no solution.

Initial authorization with https://www.fitbit.com/oauth2/authorize?client_id=.... is OK.

When I try to get the tokens with

curl -X POST "https://api.fitbit.com/oauth2/token" -H "accept: application/json" -d "client_id=XXXXX&grant_type=authorization_code&code=YYYYYYYYYYYYYYY&code_verifier=ZZZZZZZZZZZZZZ"

I get the error message "Authorization code verifier invalid: ZZZZZZZZ"

The OAuth 2.0 Application Type is "Personal"

As code verifier I used the initially created random string.

I did a second attempt with the example values from

https://dev.fitbit.com/build/reference/web-api/developer-guide/authorization/

with the same result.

Any help will be appreciated.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

I found the problem.

-H "authorization: Basic xxxxxx" was missing.

 

View best answer in original post

Best Answer
0 Votes
1 REPLY 1

I found the problem.

-H "authorization: Basic xxxxxx" was missing.

 

Best Answer
0 Votes