@page @using Microsoft.AspNetCore.Authentication @model IndexModel @{ ViewData["Title"] = "Home page"; }

Welcome

Learn about building Web apps with ASP.NET Core.

Login Loout @if (HttpContext.User.Identity != null && HttpContext.User.Identity.IsAuthenticated) {

HttpContext.GetTokenAsync("access_token")
@await HttpContext.GetTokenAsync("access_token")

}