C
C#8mo ago
Pesqoo

✅ Identity without ApiEndpoints

Hello, is it possible to use Identity without the services.AddIdentityApiEndpoints? Right now I use
services.AddIdentityApiEndpoints<User>()
.AddEntityFrameworkStores<RecipeDbContext>();
services.AddIdentityApiEndpoints<User>()
.AddEntityFrameworkStores<RecipeDbContext>();
but if i use it like this to not use the endpoints
services.AddIdentity<User, IdentityRoles>()
.AddEntityFrameworkStores<RecipeDbContext>();
services.AddIdentity<User, IdentityRoles>()
.AddEntityFrameworkStores<RecipeDbContext>();
I get an error that the service IEmailSender cannot be found. But I do not even want to send emails?!
2 Replies
Pesqoo
PesqooOP8mo ago
Solved, i forgot to remove
app.MapIdentityApi<User>();
app.MapIdentityApi<User>();
$close
MODiX
MODiX8mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server