# Refresh tokens in PKCE grant flow for Electron Native desktop

**URL:** <https://community.auth0.com/t/refresh-tokens-in-pkce-grant-flow-for-electron-native-desktop/16612>\
**Category:** Get Help\
**Created:** [October 11, 2018, 7:41am UTC](https://community.auth0.com/t/refresh-tokens-in-pkce-grant-flow-for-electron-native-desktop/16612 "2018-10-11T07:41:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adeperio](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adeperio/32/8797_2.png) [@adeperio](https://community.auth0.com/u/adeperio)\
**Post date:** [October 11, 2018, 7:41am UTC](https://community.auth0.com/t/refresh-tokens-in-pkce-grant-flow-for-electron-native-desktop/16612/1 "2018-10-11T07:41:42Z")

</div>

Hi there, just had a quick question. If I have a refresh token (after signing in successfully with PKCE) and then I use that refresh token to get a new access token, I get both an access token and an id token, but for some reason I was also expecting a new refresh token to be received in the response?

Should I be getting a new refresh token every time I use my current refresh token? Or will I only get one when I revoke my current one first and have the user sign in again?

Thanks

---

<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:** [November 8, 2018, 8:29am UTC](https://community.auth0.com/t/refresh-tokens-in-pkce-grant-flow-for-electron-native-desktop/16612/3 "2018-11-08T08:29:11Z")

</div>

Hey there @adeperio!

Basically when it comes to access and refresh tokens: **Access Tokens** can be renewed at any time using **Refresh Tokens** , they should be renewed when old ones have expired, or when getting access to a new resource for the first time. **Refresh Tokens** never expire.

Here you can read more about that:

> **[Understanding Refresh Tokens](https://auth0.com/learn/refresh-tokens)**
>
> Learn about refresh tokens and the role they serve in the authorization process

> **[Refresh Tokens](https://auth0.com/docs/secure/tokens/refresh-tokens)**
>
> Describes how refresh tokens work to allow the application to ask Auth0 to issue a new access token or ID token without having to re-authenticate the user.

Let me know if that helps!

---

<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:** [December 8, 2018, 8:29am UTC](https://community.auth0.com/t/refresh-tokens-in-pkce-grant-flow-for-electron-native-desktop/16612/4 "2018-12-08T08:29:13Z")

</div>

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