# Refresh token from Backend or Frontend?

**URL:** <https://community.auth0.com/t/refresh-token-from-backend-or-frontend/70568>\
**Category:** Get Help\
**Tags:** refresh-tokens\
**Created:** [September 30, 2021, 3:55pm UTC](https://community.auth0.com/t/refresh-token-from-backend-or-frontend/70568 "2021-09-30T15:55:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marmv90](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marmv90/32/25410_2.png) [@marmv90](https://community.auth0.com/u/marmv90)\
**Post date:** [September 30, 2021, 3:55pm UTC](https://community.auth0.com/t/refresh-token-from-backend-or-frontend/70568/1 "2021-09-30T15:55:20Z")

</div>

Does the Refresh Token need to be handled from FrontEnd or BackEnd side??

Do I need to call just once the /oauth/token endpoint? Or should be one for the grant\_type=client\_credentials and another one for grant\_type=refresh\_token?

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:** [September 30, 2021, 8:14pm UTC](https://community.auth0.com/t/refresh-token-from-backend-or-frontend/70568/3 "2021-09-30T20:14:40Z")

</div>

Hi @marmv90,

There are different types of refresh tokens. [This docs explains it, generally](https://auth0.com/docs/security/tokens/refresh-tokens).

Typically, the refresh token is going to be handled in whatever application requests it. For example, a React SPA can request a rotating refresh token that will be used to maintain the session between page refreshes, etc. A native app may request a long lived refresh token to keep a user’s session from expiring for a much longer period.

I would suggest using one of our SDKs, which handles most of these transactions for you. If you haven’t already, checkout our [quickstarts](https://auth0.com/docs/quickstarts/).

---

<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:** [October 15, 2021, 8:14pm UTC](https://community.auth0.com/t/refresh-token-from-backend-or-frontend/70568/4 "2021-10-15T20:14:57Z")

</div>

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