MongoDB.Driver.Linq.ExpressionNotSupportedException: ' Expression not supported: i.ToClaim()
I have implemented identity in ASP.NET Core, with features like registration and login working properly, including returning a JWT. Now, I want to migrate the system to MongoDB with using MongoDB.EntityFrameworkCore package. During testing, I can successfully register a new user, and the user appears in the collection. However, when I attempt to log in, I encounter the following exception.
All I did
to
in the AppDbContext
What can cause this? The registration works as expected but when login throws this.
All I did
to
in the AppDbContext
What can cause this? The registration works as expected but when login throws this.
