I'm using GoogleAuthUtil
in Google Play Services
on Android. After calling GoogleAuthUtil.getToken(context, userName, scope)
, I got a token like this:
ya29.wQBWztab5kcgMLcMbAI0LwFzHC_DPrxauSWbX4P6KOnBEOgjcm9V7OI9AFr6JGxDY54gP00RemzzgML56_gWRHn8Q5jK16BLY-0y83Gc5vfe3xN-QpyM4d7z
This is an access_token, which can be used in calling Google Apis. Then, how can I get a refresh token to refresh this access_token, because I also use Google oauth java library and YouTube Java Library in my Android project, I want to use these two libraries to maintain/manage the access_token
, refresh token
and expires_in
values. (When using Google oauth java library, the TokenResponse
it returned contains access_token
, refresh token
and expires_in
)
Thanks in advance.