private async Task <string> RenewToken(string token) { httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("bearer", token); var newToken = await accountsRepository.RenewToken(); await js.SetInLocalStorage(TOKENKEY, newToken.Token); await js.SetInLocalStorage(EXPIRATIONTOKENKEY, newToken.Expiration.ToString()); return(newToken.Token); }