I am using Auth0 in my React application. I am having an issue where on page refresh, I am being logged out despite having (what I think are) the appropriate tokens in my cookies and local storage. Even after page refresh, when I am “logged out”, I have the access and id tokens in my localstorage. However, even with useRefreshTokens={true} in my provider, at no point do I see a refresh token in my localstorage. Not sure if that is the root of the problem. What could I be doing wrong?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Keeping user logged in on page refresh | 2 | 1765 | December 3, 2024 | |
Auth0-react maintaining authentication on page refresh | 2 | 3458 | January 12, 2021 | |
Getting logged out after refreshing on localhost - React.js SPA | 7 | 19064 | August 10, 2019 | |
Persisting login on refresh with refresh token rotation | 3 | 5882 | February 11, 2021 | |
React with Auth0 SPA looses login after refresh | 10 | 13615 | September 8, 2020 |