Updating the TokenResponse interface

From Solution Explorer, navigate to the /ClientApp/app/interface/ folder, open the token.response.ts file, and add the token_refresh property, as shown:

interface TokenResponse {    token: string,    expiration: number,    refresh_token: string}

This new property is precisely what we need to store the refresh_token sent by the server.

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.