Auth0 Home Blog Docs

Angular - renew token on app startup


#1

Hi All
I’m having a problem with users being logged out if they don’t visit my app within the token expiry time, I’ve followed all the instructions here https://auth0.com/docs/quickstart/spa/angular2/05-token-renewal and it appears to all be working correctly, however it doesn’t renew the token on application start as the user is logged out. The demo application displays the same behaviour, is there a fix for this? I would like my users to remain permanently logged into my app unless they explicitly logout.

Fergal.