public async Task <string> GetAccessTokenAsync(bool renew = false) { if (user?.JwtExpiration <= DateTimeOffset.UtcNow.AddDays(1.0) || renew) { var response = await Auth.AuthorizeAsync(new DeviceInfoResource { DeviceId = user.DeviceId, RefreshToken = user.RefreshToken }); user = response.Success ? response.Data.ToUser() : null; } return(user?.Jwt); }