# SPA & Refresh Token

**URL:** <https://community.auth0.com/t/spa-refresh-token/42789>\
**Category:** Get Help\
**Tags:** spa, refresh-tokens, auth0\
**Created:** [May 11, 2020, 10:49pm UTC](https://community.auth0.com/t/spa-refresh-token/42789 "2020-05-11T22:49:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dedicatedmanagers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dedicatedmanagers/32/17619_2.png) [@dedicatedmanagers](https://community.auth0.com/u/dedicatedmanagers)\
**Post date:** [May 11, 2020, 10:49pm UTC](https://community.auth0.com/t/spa-refresh-token/42789/1 "2020-05-11T22:49:46Z")

</div>

In the post [How does auth0-spa-js store tokens](http://community.auth0.com/t/how-does-auth0-spa-js-store-tokens/30284), [@mathiasconradt](http://community.auth0.com/u/mathiasconradt) a Sr. Solutions Engineer for Auth0 writes:

> There’s never a refresh token in a SPA scenario.

Yet there’s a [knowledge article](https://auth0.com/docs/tokens/concepts/refresh-tokens#single-page-apps) on Auth0 about using Refresh Tokens with SPAs:

> Auth0 recommends using [Refresh Token Rotation](https://auth0.com/docs/tokens/concepts/refresh-token-rotation) which provides a secure method for using Refresh Tokens in SPAs while providing end-users with seamless access to resources without the disruption in UX caused by browser privacy technology like ITP.

Why the discrepancy? (or am I misunderstanding something)

---

<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 11, 2020, 11:04pm UTC](https://community.auth0.com/t/spa-refresh-token/42789/2 "2020-05-11T23:04:36Z")

</div>

Hi again @dedicatedmanagers,

The original topic you linked is from before we used refresh token rotation.

I will update it, thanks for bringing it to our attention.

---

<div class="post-metadata">

**Author:** ![dedicatedmanagers](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dedicatedmanagers/32/17619_2.png) [@dedicatedmanagers](https://community.auth0.com/u/dedicatedmanagers)\
**Post date:** [May 12, 2020, 2:33am UTC](https://community.auth0.com/t/spa-refresh-token/42789/4 "2020-05-12T02:33:56Z")

</div>

That’s what I figured, just wanted to see it in writing. 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:** [May 12, 2020, 8:44pm UTC](https://community.auth0.com/t/spa-refresh-token/42789/5 "2020-05-12T20:44:58Z")

</div>

If you see other outdated topics feel free to DM a mod or flag it. Thanks again!

---

<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:** [May 27, 2020, 8:57pm UTC](https://community.auth0.com/t/spa-refresh-token/42789/6 "2020-05-27T20:57:56Z")

</div>

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