I\'m trying to add facebook login to my .NET Core 2.1 site
I\'m following this , guide and more specific, this (for facebook login)
After have adding the lines
I had the same issue, I was registering services in two different files in the same time: Startup.cs and IdentityHostingStartup.cs files.
I sepeprated registering the services in both files as following:
I only registered Identity DB Context in this file:
//lets register identity db context
builder.ConfigureServices((context, services) => {
services.AddDbContext
In this file I registered DefaultIdentity, Roles and EntityFrameworkstores
//I registered the DefaultIdentity, the Roles and the EntityFrameworkstores
services.AddDefaultIdentity