Setting up authentication
There are a lot of built-in functionalities when it comes to authentication. The easiest way to add authentication is to select an authentication option when creating a project.
We need to implement authentication separately for the Blazor Server project and the Blazor WebAssembly project because they work differently.
But there are still things we can share between these two projects. First, we need to set up Auth0.
Auth0 is a service that can help us with handling our users. There are many different services like this, but Auth0 is a good fit for us. We can connect one or more social connectors, which will allow our users to log in with Facebook, Twitter, Twitch, or whatever we add to our site.
Even though all of this can be achieved by writing code ourselves, integration like this is a great way to add authentication quickly and also get a very powerful solution. Also, authentication is complex, so don’t write this unless you are...