# Question about getting refresh token flow

**URL:** <https://community.auth0.com/t/question-about-getting-refresh-token-flow/45357>\
**Category:** Get Help\
**Created:** [June 26, 2020, 4:23pm UTC](https://community.auth0.com/t/question-about-getting-refresh-token-flow/45357 "2020-06-26T16:23:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsherman10](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jsherman10/32/12929_2.png) [@jsherman10](https://community.auth0.com/u/jsherman10)\
**Post date:** [June 26, 2020, 4:23pm UTC](https://community.auth0.com/t/question-about-getting-refresh-token-flow/45357/1 "2020-06-26T16:23:04Z")

</div>

HI, I’m trying to create a react-redux app with embedded login, signup, forgot password, logout with a corresponding backend API, and I took a look at this:

> **[GitHub - auth0-samples/react-redux-embedded-login: Offers a comprehensive sample using modern react &...](https://github.com/auth0-samples/react-redux-embedded-login)**
>
> Offers a comprehensive sample using modern react & redux libraries on how to achieve a custom UI embedded login

I’m just curious where would the refresh token fit into this? Would I have to wait until my token expires and I get rejected from my backend and then I try to ask for a refresh token?

---

<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:** [July 1, 2020, 8:13pm UTC](https://community.auth0.com/t/question-about-getting-refresh-token-flow/45357/3 "2020-07-01T20:13:04Z")

</div>

Hi @jsherman10,

I think this is a duplicate/extension of this topic:

> [@Getting a refresh token after API returns 401](http://community.auth0.com/t/getting-a-refresh-token-after-api-returns-401/45414/):
>
> Hi quick question, I’m trying to integrate auth0 into my SPA (react/redux) with embedded login and I’ve been reading the documentation. It regards to access token expiration, it states: Read the expires\_in response parameter returned by Auth0. Ignore expiration dates altogether. Instead, renew the Access Token if your API rejects a request from the application (such as with a 401). If I do the latter, can I not use getSession() then? Also, if I wanted to use the expires\_in, do I just make …

Let’s continue the conversation in that thread 😄

Thanks,  
Dan

---

<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:** [July 16, 2020, 8:13pm UTC](https://community.auth0.com/t/question-about-getting-refresh-token-flow/45357/4 "2020-07-16T20:13:07Z")

</div>

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