@using Microsoft.AspNetCore.Authentication.Cookies;
@using Microsoft.AspNetCore.Authentication;
@using Microsoft.AspNetCore.Http;
@using System.Security.Claims
@inject IHttpContextAccessor Accessor
@ViewData["Title"] - ocrent
@{
var userId = Context.Session.GetString("userId");
var username = Context.Session.GetString("firstname");
var email = Accessor.HttpContext.Session.GetString("email");
Claim? claim = null;
if(email!=null){
claim = Accessor.HttpContext.User.FindFirst(email);
}
//customClaim.Value
if(userId != null){
}
}
@RenderBody()
@await RenderSectionAsync("Scripts", required: false)