Upgrading TokenResponseViewModel

Open the /ViewModels/TokenResponseViewModel.cs file and update it in the following way:

[...]#region Propertiespublic string token { get; set; }public int expiration { get; set; }public string refresh_token { get; set; }#endregion[...]

This property will be used by our TokenController to send the refresh token to the client --along with the access token--upon a successful login.

Get ASP.NET Core 2 and Angular 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.