# App continuously sending access tokens

**URL:** <https://community.auth0.com/t/app-continuously-sending-access-tokens/60433>\
**Category:** Get Help\
**Tags:** access\_token, access-token\
**Created:** [April 1, 2021, 12:04pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433 "2021-04-01T12:04:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![importhuman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/importhuman/32/28450_2.png) [@importhuman](https://community.auth0.com/u/importhuman)\
**Post date:** [April 1, 2021, 12:04pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433/1 "2021-04-01T12:04:31Z")

</div>

Once I log in, the app keeps sending access tokens. While it doesn’t seem to lead to any issues in the functioning of the app, this seems to be new behaviour. I thought it’s been happening since the time I stopped using Auth0 development keys, but I removed my keys and it’s still happening, so that’s not it (currently using Github social connection, if it’s of relevance).  
_For Frontend - React SPA_  
**Token durations (seconds)**  
ID token: 36000  
Refresh token rotation (reuse interval): 3600  
Absolute lifetime: 2592000  
Inactivity lifetime: 1296000

_For backend- Go API_  
**Token durations (seconds)**  
Token expiration: 86400  
Token expiration for browser flows: 7200

![Screenshot from 2021-04-01 17-11-54](https://global.discourse-cdn.com/auth0/original/3X/0/6/06dccda8aa2f31c4a10c900803d0a4b508fa6306.png)

From the browser console. In my useState hook, I added the console.log line:

```plaintext
const token = await getTokenSilently();
console.log(token);

```

![Screenshot from 2021-04-01 17-12-11](https://global.discourse-cdn.com/auth0/original/3X/0/6/0671ec8aebfd212a5db827f16a935dfdec55dc60.png)

From the terminal. The “email” is just a namespaced claim I’ve added to my JWT middleware function, but this also shows that the access token is being sent repeatedly.

---

<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:** [April 5, 2021, 7:06pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433/3 "2021-04-05T19:06:31Z")

</div>

Hi @importhuman,

It looks like the getTokeSilently call is being made repeatedly. It’s hard to say why this is happening without more context. Are you using a quickstart or did you build out the implementation yourself?

---

<div class="post-metadata">

**Author:** ![importhuman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/importhuman/32/28450_2.png) [@importhuman](https://community.auth0.com/u/importhuman)\
**Post date:** [April 16, 2021, 2:30pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433/4 "2021-04-16T14:30:21Z")

</div>

@dan.woda I used [this Auth0 blog](https://auth0.com/blog/authentication-in-golang/) as a reference.

---

<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:** [April 16, 2021, 9:40pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433/5 "2021-04-16T21:40:22Z")

</div>

It looks like this is all happening in the react app, and shouldn’t be affected by whatever is going on in your Go backend.

It might be better to use the [react quickstart](https://auth0.com/docs/quickstart/spa/react/01-login), which leverages the auth0-react SDK that has been released since this blog was published.

---

<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:** [June 1, 2021, 5:05pm UTC](https://community.auth0.com/t/app-continuously-sending-access-tokens/60433/6 "2021-06-01T17:05:13Z")

</div>

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