How to refresh access token for spa?

Hi @DTX,

Welcome to the Auth0 Community Forum!

You should not use refresh tokens in a client side app (SPA). Take a look at silent authentication, if you are using auth0.js then you will use the checkSession method:

https://auth0.com/docs/api-auth/tutorials/silent-authentication#renew-expired-tokens

Hope this helps!

Thanks,
Dan

1 Like