Updating the AppSettings files

The next thing to do is to add those missing AppSettings values that we're already looking for in the Startup class. Open the appsettings.json file and add the following lines to the existing JSON configuration object (new lines are highlighted):

[...]{  "Data": {    "DefaultConnection": {      "ConnectionString": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=TestMakerFree;Integrated Security=True; MultipleActiveResultSets=True"    }  },  "Auth": {    "Jwt": {      "Issuer": "http://www.testmakerfree.com/",      "Audience": "http://www.testmakerfree.com/",      "Key": "---insert-your-own-key-here---"      "TokenExpirationInMinutes": 86400    }  },  "Logging": {[...]
For demonstration purposes, we did set the TokenExpirationInMinutes with a value ...

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.