@{
    ViewData["Title"] = "Home Page";
}

<div class="text-center">
    <h1 class="display-4">Welcome</h1>
    @if ((bool)(ViewData["Authenticated"] ?? false))
    {
        <p>Successfully authenticated.</p>
        <p>User ID: @ViewData["UserId"]</p>
    }
    else
    {
        <p>You are not authenticated.</p>
        <p>
            <a asp-action="Login" class="btn btn-primary">Login with OAuth</a>
        </p>
    }
</div>
