# Google action Auth0 account linking Token expires for every 24hours

**URL:** <https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [February 12, 2020, 11:33am UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799 "2020-02-12T11:33:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lokesh\_BR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lokesh_br/32/14208_2.png) [@Lokesh\_BR](https://community.auth0.com/u/Lokesh_BR)\
**Post date:** [February 12, 2020, 11:33am UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/1 "2020-02-12T11:33:13Z")

</div>

Hi all,  
I am developing a Google action and added account linking  
In the linked image you can see the settings I did in Action console-\>Account linking.

 ![screenshotGoogleAction](https://global.discourse-cdn.com/auth0/original/3X/1/b/1b9bc95a1e6ba82a8a173c4dea9f0574997ca5db.png)

In AuthO Applications added all fields necessary, JWT Expiration set to 604800 also in APIs setting I have updated Token Expiration (Seconds) to Token Expiration (Seconds)

 ![screenshotAutho1](https://global.discourse-cdn.com/auth0/original/3X/2/9/299c560775205012db68edbf8a7bde35bbfc41f4.png)  
 ![screenshotauth02](https://global.discourse-cdn.com/auth0/original/3X/f/8/f8ec4f2609a5ed90a214f253b28eb43c3507dd38.png)

Account linking works perfectly but after 24 hours, my Google action prompts the user to ‘link the account again’, Even though I changed the JWT expiration to 7 days and Token Expiration to 7 days,I don’t know why action asks the user to ink there account again after 24 hours.  
Kindly help me in this regard as it is very important me to publish action and running over my deadline

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [February 12, 2020, 3:31pm UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/2 "2020-02-12T15:31:43Z")

</div>

Per ([Account linking with OAuth &nbsp;|&nbsp; Actions on Google account linking &nbsp;|&nbsp; Google Developers](https://developers.google.com/assistant/identity/oauth2)) the recommendation is to use authorization code and a refresh token instead of long-lived access tokens. In order to obtain a refresh token besides an API settings allowing refresh tokens to be issued **the client application would need to send the `offline_access` scope**.

In your screenshot either you’re intentionally not using `offline_access` for testing purposes or you have a typo in that scope. Can you confirm if there’s a particular reason to not try this with refresh tokens?

---

<div class="post-metadata">

**Author:** ![Lokesh\_BR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lokesh_br/32/14208_2.png) [@Lokesh\_BR](https://community.auth0.com/u/Lokesh_BR)\
**Post date:** [February 12, 2020, 4:20pm UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/3 "2020-02-12T16:20:19Z")

</div>

thank you @jmangelo .  
That was a mistake from my side. I changed \_offlineaccess to offline\_access.  
I will wait till next 24 hrs and will confirm

---

<div class="post-metadata">

**Author:** ![Lokesh\_BR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lokesh_br/32/14208_2.png) [@Lokesh\_BR](https://community.auth0.com/u/Lokesh_BR)\
**Post date:** [February 14, 2020, 6:44am UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/4 "2020-02-14T06:44:32Z")

</div>

That worked,Thank you

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 14, 2020, 7:40am UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/5 "2020-02-14T07:40:07Z")

</div>

Perfect! Glad to hear that!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [February 29, 2020, 7:40am UTC](https://community.auth0.com/t/google-action-auth0-account-linking-token-expires-for-every-24hours/37799/6 "2020-02-29T07:40:10Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
