SignInAsync is not directly on the HttpContext object, it is an extension method which is on a class called AuthenticationHttpContextExtensions in the Microsoft.AspNetCore.Authentication namespace. So if you can see the HttpContext object but can't see the SignInAsync method on it, try adding a
@using Microsoft.AspNetCore.Authentication