@page @using Microsoft.AspNetCore.Authentication @using System.Net.Http.Headers @using System.Text.Json @model IndexModel @{ ViewData["Title"] = "Home page"; }
HttpContext.GetTokenAsync("access_token")
@await HttpContext.GetTokenAsync("access_token")
@{
var apiResponse = JsonSerializer.Serialize(JsonDocument.Parse(await response.Content.ReadAsStringAsync()), new JsonSerializerOptions
{
WriteIndented = true
});
}
@apiResponse;
}