private async Task SetAuthorizationAsync(string bearerToken, bool isPersistent, bool isStore = true) { BearerToken = bearerToken; Api.Authorization = new AuthenticationHeaderValue("Bearer", bearerToken); if (isStore) { await TokenStorage.SetAsync(bearerToken, isPersistent); } UserProperties.ClearOnUserChanged(); UserChanged?.Invoke(); }