Closed kubYkula closed 4 years ago
const checkExpiry = async () => { if (privateToken && isExpired(getExpire(privateToken))) { const newToken = onUpdateToken ? await onUpdateToken(privateToken) : null; if (newToken) { privateToken = newToken; **setToken(newToken)** } else { localStorage.removeItem(localStorageKey); privateToken = null; } } };
Thanks a lot for the fix, I updated the version on npm to 1.1.4