06-17-2022 09:28
06-17-2022 09:28
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.
Answered! Go to the Best Answer.
06-17-2022 09:57
06-17-2022 09:57
06-17-2022 09:57
I found the problem.
-H "authorization: Basic xxxxxx" was missing.