Testing it up

We can now launch the application in debug mode, wait until we see the Home view, and then perform the logout (in case we're still logged in from before).

Once done, we can navigate to the Login/Register view and try to use the new Login with Facebook button--assuming that we have a valid FB account--to see what happens. Needless to say, we can follow the whole authentication workflow with the Visual Studio interface by placing the appropriate breakpoints within the various .NET Core and Angular methods we just added.

The Visual Studio client-side debugger isn't always reliable within non-angular async JS code, even when encapsulated within the Angular zone. There's a high chance to run into some issues here and there; if it ...

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.