Then, select “ASP.NET Core Web Application” from the available project types. NET Core inside the Visual C# menu from the left panel. After selecting the project, a “New Project” dialog will open.
Open Visual Studio and select File > New > Project.
The key generated in the app will be unique to your userID, and is a time-based one-time password (TOTP) - that is, it will expire after a certain time. When you login to the web application, you have to enter a six-digit pin that will be generated in the app to finish the two-factor authentication.
To use it, you need to configure the Google Authenticator app on your smartphone using the QR code generated in the web app.
In this article, we are going to learn how to perform two-factor authentication in an ASP.NET Core application using the Google Authenticator app.