try
{
string signedInUserID = HttpContext.User.FindFirst(ClaimTypes.NameIdentifier).Value;
//do some stuff if the user is singed in
}
Catch
{
//do some stuff if the user is singed in
}
Is there a better way to check if the user is signed in?