Login_required when checkSession

Hey onroute! I’d be happy to offer some assistance if I can. Could you post the code? And the error from Auth0 logs would be helpful too. I’ve used the checkSession method with both auth0-js and auth0-lock and haven’t encountered this issue.

My javascript code looks something like this:

this.lock.checkSession({}, (err, authResult) => {
   if(err) {
      console.log(err);
   } else {
      const expiresAt = JSON.stringify((authResult.expiresIn * 1000) + new Date().getTime());
      localStorage.setItem('access_token', authResult.accessToken);
      localStorage.setItem(expires_at);
   }
});