Keep users logged in indefinitely; react

Hi Luis,

The code calls this.scheduleRenewal(); in the constructor, which does this scheduleRenewal() { const expiresAt = JSON.parse(localStorage.getItem('expires_at')); const delay = expiresAt - Date.now(); if (delay > 0) { this.tokenRenewalTimeout = setTimeout(() => { this.renewToken(); }, delay); } }

Am I missing anything? Here is a gist of my code: auth actual usage · GitHub

Thanks again,
Jon