03-22-2022 16:00
03-22-2022 16:00
Hello,
I am building a web api based app from Flutter and I am quite confused on the process of obtaining the auth code from the redirect URL. I created the code verifier, got the code challenge and implemented intent filters in the android manifest. I launched the url with the parameters attached to it as mentioned in the fitbit sdk. Once the authentication is completed in the web browser it is redirected back to my app but I am stuck at the place where I should get back the redirect URL with the attached code. I would be great to get some insight on this matter. Thanks a lot.
03-23-2022 10:24
03-23-2022 10:24
Hi @Vaji
When you're redirected back to your application, the authorization code should be attached to the URL. The example in step 3 of the documentation shows
https://myapp.com/callback?code=d62d6f5bdc13df79d9a5f#_=_
where the item in red is the authorization code. Your application will need to parse this code from the URL.
If you need additional help on this step, please describe the problem by explaining what you see or don't see.
Gordon