NotSupportedException: No IUserTwoFactorTokenProvider named ‘Default’ is registered on GenerateEmailConfirmationTokenAync
In Startup.cs file you have modified services.AddDefaultIdentity to services.AddIdentity . When calling GenerateEmailConfirmationTokenAync for example or any other identity function, if you receive the following error: An unhandled exception occurred while processing the request.NotSupportedException: No IUserTwoFactorTokenProvider<TUser> named ‘Default’ is registered. Microsoft.AspNetCore.Identity.UserManager<TUser>.GenerateUserTokenAsync(TUser user, string tokenProvider, string purpose) Here is the fix : Add a AddDefaultTokenProviders() when adding