Once done, perform the same steps to add the TokenResponseViewModel, which is the POCO class hosting the parameters returned to the client by the server after a successful login:
using Newtonsoft.Json;
namespace TestMakerFreeWebApp.ViewModels
{
[JsonObject(MemberSerialization.OptOut)]
public class TokenResponseViewModel
{
#region Constructor
public TokenResponseViewModel()
{
}
#endregion
#region Properties
public string token { get; set; }
public int expiration { get; set; }
#endregion
}
}
This concludes the ASP.NET Core part of our job. Before switching to Angular, we can spend some valuable time to briefly test it using Postman.