Login_required when checkSession

Thanks Royce,
The error happens just after the user log in correctly. I get a timeout in my application and in the log from Auth0 only said “login_required”.

Strange thing is, I decided to create another tenant and in that one I can renew the token, but still have a timeout in the front end application. So, I can’t renew the token in the session storage.

Code looks like this:

const webAuth = new auth0.WebAuth({
  clientID: 'MY_CLIENT_ID',
  domain: 'MY_AUTH_DOMAIN',
  redirectUri: 'CALLBACK_URL',
  responseType: 'token id_token',
  scope: "openid profile read"
});

webAuth.checkSession({}, function (err, authResult) {
    if(err) {
        console.log(err);
    }else {
        //Some action
    }
});