06-22-2023 05:10
06-22-2023 05:10
I have a react native mobile app to which fitbit is to be integrated. I have used Linking library to open fitbit login page. Once logged in, I'm navigating to "http://www.fitbit.com", which is given as the redirect_uri. But I'm not getting access token as part of this request, due to which I'm unable to access the user data. Can someone please help me on this?
this is the url i'm hitting to authenticate the user. The client ID in the url has been replaced with <clientid> for security purposes. Please ignore that.
06-26-2023 00:25
06-26-2023 00:25
Hi @christyfrancis,
Welcome to the forums!
It sounds like you're using the Implicit Grant Flow. Are you including all of the necessary parameters in your authorization request? For example:
Implicit Grant Flow
https://www.fitbit.com/oauth2/authorize?response_type=token
&client_id=<client ID>
&redirect_uri=https%3A%2F%2Fexample.com%2Fcallback
&expires_in=604800
&scope=activity%20nutrition%20heartrate%20location%20...
I'm not able to see your full authorization url, are you passing the "expires_in" parameter?