Reputation: 1636
I am developing one fitness app in android. I want to add my app workout data on Fitbit. I was successfully login in Fitbit using oAuth 2.0 My url is as below:
https://www.fitbit.com/oauth2/authorize?response_type=token&client_id="
+ clientId + "&redirect_uri=" + redirectUri + "&scope=" + scope
and I'm getting below response:
callback://android-****#scope=activity&user_id=*****&token_type=Bearer&expires_in=86152&access_token=***************HAiOjE0NjAxMTI3MjUsInNjb3BlcyI6IndhY3QiLCJzdWIiOiI0NjZTNzIiLCJhdWQiOiIyMjdIWDgiLCJpc3MiOiJGaXRiaXQiLCJ0eXAiOiJhY2Nlc3NfdG9rZW4iLCJpYXQiOjE0NjAwMjY1NzN9.KV3zV0QjNHv0nmFAxGzd6OUp*********
I'm not getting refresh token. How I will refresh access token ? Please guide me where I am wrong or missing something.
Thanks
Upvotes: 1
Views: 733
Reputation: 1636
I'm using the implicit grant flow. The Implicit Grant Flow doesn't use refresh tokens and the user must re-authorize the application when the access token expires.
You may be looking for the Authorization Code Grant Flow.
Upvotes: 1