# User Management return null refresh token for google social identity

**URL:** <https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394>\
**Category:** Get Help\
**Tags:** login\
**Created:** [June 20, 2022, 7:34am UTC](https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394 "2022-06-20T07:34:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ia.nainggolan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ia.nainggolan/32/35418_2.png) [@ia.nainggolan](https://community.auth0.com/u/ia.nainggolan)\
**Post date:** [June 20, 2022, 7:34am UTC](https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394/1 "2022-06-20T07:34:12Z")

</div>

I’m integrating auth 0 with google social login. Since I am trying to call google classroom api, I would need a valid access token. The problem is, the google api credential will expire after 1 hour and this forcing my user to reloging using their google account via auth0.  
To solve this I would need google idp refresh token, so I can refresh the credential for the user without relogin. Unfortunately, I keep getting refresh token null from the auth0 user management api.

 ![auth0 null refresh token](https://global.discourse-cdn.com/auth0/original/3X/4/8/4891c42ddda63e5252f673a531ba857386fb85b4.png)

I’ve set my authorize script to have offline\_access scope

 ![image](https://global.discourse-cdn.com/auth0/original/3X/c/f/cf59099201e681ef76280771124ad12fb25dc950.png)

I’ve also tried this seetings

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/3/a38a16e3110d463e850c12b12be0ca2ba89222bc.png)

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [June 27, 2022, 5:25pm UTC](https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394/3 "2022-06-27T17:25:30Z")

</div>

Hi @ia.nainggolan,

Can you please post a code snippet instead of a screenshot? We can’t see all of the connection scopes you are passing.

---

<div class="post-metadata">

**Author:** ![ia.nainggolan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ia.nainggolan/32/35418_2.png) [@ia.nainggolan](https://community.auth0.com/u/ia.nainggolan)\
**Post date:** [August 12, 2022, 11:33am UTC](https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394/4 "2022-08-12T11:33:49Z")

</div>

This has been solved by calling patch connection endpoint  
and set the upstream param

```auto
"upstream_params": {
            "prompt": {
                "value": "consent"
            },
            "access_type": {
                "value": "offline"
            }
        }

```

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [September 30, 2022, 11:06pm UTC](https://community.auth0.com/t/user-management-return-null-refresh-token-for-google-social-identity/85394/5 "2022-09-30T23:06:25Z")

</div>


