ASP.net Core 2.2 JWT Authentication tutorial
Cookies are stale. These days there are better solutions for user authentication, which solve the headaches cookies cause with mobile and single-page applications.
Check out how to make use of JWT token authentication in .net core.