protected async Task SetupHttpClient() { authClient = new Client.API.Generated.Client(ApiConfiguration.BaseUrlAPI, httpClient); accessToken = await ObterToken(); httpClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(JwtBearerDefaults.AuthenticationScheme, accessToken); }
protected override async Task ExecutarPlayground() { cliente = new Client.API.Generated.Client(ApiConfiguration.BaseUrlAPI, httpClient); await ListarProdutos(); }