Refresh Token for reload page

Hi there,
I am using the MERN stack website for Auth0. And every time I refresh the page, it redirects to the Auth0 login page while the session cookie is not expired yet. I did the same with the Auth0 tutorial and i have set

      useRefreshTokens={true}

to true but somehow it does not work.
Please helpppp

Hi @phu0n9,

Try adding the cacheLocation option as well. See this topic for more info:

omg thank you so much. It works !!! But is it safe to save the key in local storage? What is the alternative way to store it?
Anyway thank you so so much.

1 Like

Take a look at this blog post that explains it:

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