Testing

bool isAuthenticated = User.Identity.IsAuthenticated;
            if (isAuthenticated)
            {
                return StatusCode(200);

            }
            else
            {
                return StatusCode(401);

            }

 

Testing

 

Comments

Be the first to post a comment

Post a comment