# Can we get the IDP refresh\_token without forcing consent prompt?

**URL:** <https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345>\
**Category:** Get Help\
**Tags:** idp, google, refresh-tokens\
**Created:** [March 17, 2022, 9:28pm UTC](https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345 "2022-03-17T21:28:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom18](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom18/32/35905_2.png) [@tom18](https://community.auth0.com/u/tom18)\
**Post date:** [March 17, 2022, 9:28pm UTC](https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345/1 "2022-03-17T21:28:04Z")

</div>

A separate, but very much related issue:

Can we get the IDP refresh\_token without forcing users to go to the consent popup every time they log in?

If the consent screen doesn’t appear, and a user don’t click “Allow”, we don’t get a new refresh\_token from the IDP (in our case - google-oauth2)

The refresh\_token from the IDP is different from the auth0 refresh\_token, and the token that we need to pass to the Google Drive API is the refresh\_token from Google Auth itself.

It seems like there’s only one way to get refresh\_token from Google, and that’s from the consent popup, after a user clicks “Allow”

---

<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:** [March 22, 2022, 6:05pm UTC](https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345/3 "2022-03-22T18:05:49Z")

</div>

Hi @tom18,

I moved this question to a new topic and I’ll be taking a look at it shortly. Thanks!

---

<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:** [March 23, 2022, 7:36pm UTC](https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345/4 "2022-03-23T19:36:59Z")

</div>

Hi @tom18,

I don’t think your users should be required to give consent every time a new refresh token is issued. Is this related to the other topic you are working on? Are you [getting the google refresh tokens from the Auth0 management API](https://auth0.com/docs/secure/tokens/access-tokens/identity-provider-access-tokens)?

---

<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:** [May 25, 2022, 9:23pm UTC](https://community.auth0.com/t/can-we-get-the-idp-refresh-token-without-forcing-consent-prompt/80345/5 "2022-05-25T21:23:11Z")

</div>


