# Retrieve non rotating refresh token using SPA sdk

**URL:** <https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090>\
**Category:** Get Help\
**Tags:** api, auth0\
**Created:** [August 20, 2022, 7:09am UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090 "2022-08-20T07:09:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmj](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmj/32/35970_2.png) [@jmj](https://community.auth0.com/u/jmj)\
**Post date:** [August 20, 2022, 7:09am UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/1 "2022-08-20T07:09:11Z")

</div>

I am able to retrieve rotating refresh token using auth0 SPA SDK - however using non-rotating refresh token I am unable to retrieve on SPA (using PKCE authorization flow).

I understand the security risk of making non rotating refresh token available to public client (web browser here for example).

Questions:

- If I still want to access non-rotating refresh token in my SPA - how can I get it?
- If SPA is really out of question for this situation, can I retrieve non rotating refresh token using access token and client secret from backend?

I have the user authenticated and authorized to perform API calls in SPA. I want to make non rotating refresh token available to them.

---

<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:** [August 26, 2022, 10:11pm UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/3 "2022-08-26T22:11:07Z")

</div>

Hi @jmj,

Welcome to the Auth0 Community!

It sounds like you should be issuing the user a set of client credentials as a third party application. More info here: [First-Party and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/first-party-and-third-party-applications)

---

<div class="post-metadata">

**Author:** ![jmj](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmj/32/35970_2.png) [@jmj](https://community.auth0.com/u/jmj)\
**Post date:** [August 26, 2022, 10:23pm UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/4 "2022-08-26T22:23:21Z")

</div>

Thanks @dan.woda - yes I read through other similar post and ended up implementing m2m apps and client credentials.

---

<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:** [August 26, 2022, 10:23pm UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/5 "2022-08-26T22:23:49Z")

</div>

Perfect! Let us know if you have any other questions.

---

<div class="post-metadata">

**Author:** ![jmj](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmj/32/35970_2.png) [@jmj](https://community.auth0.com/u/jmj)\
**Post date:** [August 26, 2022, 10:55pm UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/6 "2022-08-26T22:55:30Z")

</div>

Since you are asking 🙂 I have other question where I could use your expertise. [Username Password connection, organization & signup](https://community.auth0.com/t/username-password-connection-organization-signup/89510)

---

<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, 2022, 11:02pm UTC](https://community.auth0.com/t/retrieve-non-rotating-refresh-token-using-spa-sdk/89090/7 "2022-09-30T23:02:16Z")

</div>


